You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone. We are using conftest to automate some OPA checks.
We have a repository with our OPA policies and we run conftest pull git::<my repo> before executing conftest test and it fails if the default folder policy already exists.
You can easily reproduce this by running conftest pull git::<your repo> twice, the first time it pulls the policies, the second time it fails with a git error (which is hiding the real issue):
Error: download policies: client get: error downloading 'ssh://git@<myrepo>': /opt/homebrew/bin/git exited with 128: fatal: empty string is not a valid pathspec. please use . instead if you meant to match all paths
Is this intended?
Thank you
The text was updated successfully, but these errors were encountered:
elisiariocouto
changed the title
conftest pull git repository fails if folder alreaedy exists
conftest pull git repository fails if folder already exists
Dec 2, 2024
Marking this as an enhancement for now as there is a straightforward work-around available by deleting the folder first.
This would be a good candidate for an action that prompts the user by default, but the confirmation can be skipped with a flag so it works reliably in scripts etc.
Hello everyone. We are using conftest to automate some OPA checks.
We have a repository with our OPA policies and we run
conftest pull git::<my repo>
before executingconftest test
and it fails if the default folderpolicy
already exists.You can easily reproduce this by running
conftest pull git::<your repo>
twice, the first time it pulls the policies, the second time it fails with a git error (which is hiding the real issue):Is this intended?
Thank you
The text was updated successfully, but these errors were encountered: