Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to filter packages for aqua update: --{exclude-}tags #3393

Closed
mlavi opened this issue Dec 27, 2024 · 3 comments · Fixed by #3399
Closed

Add option to filter packages for aqua update: --{exclude-}tags #3393

mlavi opened this issue Dec 27, 2024 · 3 comments · Fixed by #3399
Labels
enhancement New feature or request
Milestone

Comments

@mlavi
Copy link

mlavi commented Dec 27, 2024

Feature Overview

I can conditionally install a subset of commands by using Aqua package tags, so I would like to update the same subset by tags.

Why is the feature needed?

I've adopted aqua's package tags for installation (described in aqua install --help), so I would like to also use tags for updates, but aqua update --help shows no such options.

Example Code

To only update packages with the tag: bootstrap

$ aqua install --all --tags bootstrap
$ aqua --config "${AQUA_GLOBAL_CONFIG}" --tags bootstrap update

Configuration is already specified, e.g.:

---
packages:
- name: direnv/[email protected]
  tags:
    - bootstrap

Note

No response

@suzuki-shunsuke
Copy link
Member

Thank you for your feedback!
I'm working on this.

@suzuki-shunsuke
Copy link
Member

@mlavi Could you try https://github.com/aquaproj/aqua/releases/tag/v2.41.0-0 ?

aqua upa v2.41.0-0
aqua up -t bootstrap # Update only packages with a tag `bootstrap`
aqua up --exclude-tags bootstrap # Exclude packages with a tag `bootstrap`

@suzuki-shunsuke
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants