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 setting the base directory path of .files[].src to simplify #1985

Open
suzuki-shunsuke opened this issue May 10, 2023 · 0 comments
Open
Labels
enhancement New feature or request registry

Comments

@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented May 10, 2023

Feature Overview

support setting the base directory path of .files[].src.

Why is the feature needed?

To simplify the configuration.

Does the feature include Breaking Changes?

No.

Example Code

https://github.com/aquaproj/aqua-registry/blob/fafe10db475840269ca00c934cd34fcae2c8c9ad/pkgs/WebAssembly/binaryen/registry.yaml#L19-L43

AS IS

files:
  - name: binaryen-unittests
    src: binaryen-{{.Version}}/bin/binaryen-unittests
  - name: wasm-as
    src: binaryen-{{.Version}}/bin/wasm-as
  - name: wasm-ctor-eval
    src: binaryen-{{.Version}}/bin/wasm-ctor-eval
  - name: wasm-dis
    src: binaryen-{{.Version}}/bin/wasm-dis
  - name: wasm-emscripten-finalize
    src: binaryen-{{.Version}}/bin/wasm-emscripten-finalize

TO BE

files_dir: binaryen-{{.Version}}/bin
files:
  - name: binaryen-unittests
  - name: wasm-as
  - name: wasm-ctor-eval
  - name: wasm-dis
  - name: wasm-emscripten-finalize

Reference

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

No branches or pull requests

1 participant