Hi, unfortunately this warning fires on kas lock --update as well.
There we intentionally don't pin to a commit (as we update the
lockfile). We probably need to pass the update information to the
factory and silence the warning in this case.
Felix
> + Repo.__no_commit_warned__.append(name)
> path = repo_config.get('path', None)
> signed = repo_config.get('signed', False)
> signers = repo_config.get('allowed_signers', None) if signed else None
> diff --git a/tests/test_refspec.py b/tests/test_refspec.py
> index f6365bf..0abf0ba 100644
> --- a/tests/test_refspec.py
> +++ b/tests/test_refspec.py
> @@ -175,7 +175,7 @@ def test_unsafe_tag_warning(capsys, monkeykas, tmpdir):
> shutil.copytree('tests/test_refspec', tdir)
> monkeykas.chdir(tdir)
> # needs to be reset in case other tests ran before
> - Repo.__no_commit_tag_warned__ = []
> + Repo.__no_commit_warned__ = []
> kas.kas(['shell', 'test2.yml', '-c', 'true'])
> assert capsys.readouterr().err.count(
> 'Using tag without commit for repository "kas4" is unsafe as tags '
> --
> 2.47.3
>
> --
> You received this message because you are subscribed to the Google Groups "kas-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kas-devel+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/kas-devel/397b10d5fab5f7c72b4dfa2f11a27a5cfad06535.1774528087.git.jan.kiszka%40siemens.com.