Provide a tag attribute for a package and allow this to filter the packages installed in CI or other environments #1330
-
I'd like to keep a single config for ---
packages:
- name: dbrgn/[email protected]
tags: ['developer']
- name: goreleaser/[email protected]
tags: ['developer', 'release']
- name: gotestsum/[email protected]
tags: ['developer', 'test'] Then on installation all my installation scripts could optionally add CompatibilityThe thing I like about this approach is that it would be zero impact to existing processes using aqua. It's an opt-in feature. It also doesn't require duplication of the config file which could double aqua updates through renovate if similar packages are required for different types of tasks. Lazy Install Is Great But Not What I Need for CILazy install is an amazing concept, and I use it now on my personal codespace setup scripts. The catch is that there's a few places where that can break down, let's say stderr or stdout gets mixed up with aqua installation stuff from the proxy, then a tool like vscode, or another cli tool might error out. It's too much to troubleshoot. I would much rather just "install" and cache at the beginning of a github action, than rely fully on the aqua proxy. It reduces my long-term worry about adopting aqua as I could just replace it with another install method. Using the proxy could result in more refactoring work with github actions if I leverage it more. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Thank you for your feedback and proposal. I'd like to keep As for Lazy Install Log, you can suppress the log by setting |
Beta Was this translation helpful? Give feedback.
-
SpecificationAdd the filed e.g. registries:
- type: standard
ref: v3.79.0 # renovate: depName=aquaproj/aqua-registry
packages:
- name: suzuki-shunsuke/[email protected]
tags:
- ci
- foo
- name: cli/[email protected]
- name: suzuki-shunsuke/[email protected]
tags:
- test The field affects only the following commands.
The following options are added.
Packages with When Exampleaqua.yaml registries:
- type: standard
ref: v3.79.0 # renovate: depName=aquaproj/aqua-registry
packages:
- name: suzuki-shunsuke/[email protected]
tags:
- ci
- foo
- name: cli/[email protected]
- name: suzuki-shunsuke/[email protected]
tags:
- test $ aqua i # Install only cli/cli
$ aqua i -l # Create links for all packages
$ aqua i -t ci # Install only suzuki-shunsuke/tfcmt
$ aqua i --ignore-tags # Install all packages |
Beta Was this translation helpful? Give feedback.
-
Released. https://github.com/aquaproj/aqua/releases/tag/v1.23.0 |
Beta Was this translation helpful? Give feedback.
Released. https://github.com/aquaproj/aqua/releases/tag/v1.23.0
https://aquaproj.github.io/docs/guides/package-tag/