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

Support extracting only specific files from assets #3447

Open
suzuki-shunsuke opened this issue Jan 8, 2025 · 0 comments
Open

Support extracting only specific files from assets #3447

suzuki-shunsuke opened this issue Jan 8, 2025 · 0 comments
Labels
enhancement New feature or request performance

Comments

@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Jan 8, 2025

Feature Overview

Support extracting only specific files from assets.
We replaced mholt/archiver/v3 with mholt/archives.
mholt/archives enables us to handle each file independently.
So we can extract only specific files.

Why is the feature needed?

  • To install tools faster
  • To reduce file sizes

Some assets are very huge.
They include a lot of files but tools may work without them.

Example Code

Add these options to registries:

  • include_files (glob): Extracted file paths
  • exclude_files (glob): Ignored file paths
  • extract_only_files (boolean): If true, extract only files

registry.yaml

    include_files:
      - go/bin/*
    # exclude_files:
    #   - doc/*
    # extract_only_files: true
    files:
      - name: go
        src: go/bin/go
      - name: gofmt
        src: go/bin/gofmt

Note

  1. This feature may break packages because tools may depend on not extracted files.
  2. To modify these options after installing packages, we need to uninstall packages once.
    Otherwise, aqua skips install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance
Projects
None yet
Development

No branches or pull requests

1 participant