The policy file is ignored unless it is allowed by "aqua policy allow" command
You may face the warning when you try to install or execute packages.
e.g.
$ aqua i
WARN[0000] The policy file is ignored unless it is allowed by "aqua policy allow" command.
$ aqua policy allow "/Users/shunsukesuzuki/Documents/test/aqua/policy-git/aqua-policy.yaml"
If you want to keep ignoring the policy file without the warning, please run "aqua policy deny" command.
$ aqua policy deny "/Users/shunsukesuzuki/Documents/test/aqua/policy-git/aqua-policy.yaml"
aqua_version= env=darwin/arm64 policy_file=/Users/shunsukesuzuki/Documents/test/aqua/policy-git/aqua-policy.yaml program=aqua
ERRO[0000] install the package aqua_version= doc="https://aquaproj.github.io/docs/reference/codes/002" env=darwin/arm64 error="this package isn't allowed" package_name=suzuki-shunsuke/ci-info package_version=v2.1.2 program=aqua registry=local
FATA[0000] aqua failed aqua_version= env=darwin/arm64 error="it failed to install some packages" program=aqua
What does this warning mean?
This warning means your Policy file isn't allowed yet. The Policy is ignored unless you allow the Policy.
How to solve the warning
Please check your Policy file. If the Policy file has no problem, please run aqua policy allow
command according to the warning.
e.g.
aqua policy allow "/Users/shunsukesuzuki/Documents/test/aqua/policy-git/aqua-policy.yaml"
If the Policy allows untrusted Registries and you don't want to allow them, please fix the Policy file before allowing the Policy.
If you want to suppress the warning but don't want to allow the Policy file, please run aqua policy deny
command according to the warning.
e.g.
aqua policy deny "/Users/shunsukesuzuki/Documents/test/aqua/policy-git/aqua-policy.yaml"
This command suppresses the warning but the Policy is ignored unless you run aqua policy allow
command.