-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
vars
are not replaced when used in files[].src
#3193
Comments
Thank you for your feedback. How about this? registry.yaml: ---
packages:
- type: http
repo_owner: ziglang
repo_name: zig
supported_envs:
- linux
replacements:
amd64: x86_64
format: tar.xz
url: https://ziglang.org/builds/zig-{{.OS}}-{{.Arch}}-{{.Version}}
files:
- name: zig
src: zig-{{.OS}}-{{.Arch}}-{{.Version}}/{{.FileName}} aqua.yaml: ---
checksum:
supported_envs:
- linux
registries:
- type: local
name: local
path: registry.yaml
packages:
- name: ziglang/[email protected]+2d888a8e6
registry: local |
I'll update aqua-registry for zig's dev versions. |
v4.239.1 is out 🎉 aqua.yaml: registries:
- type: standard
ref: v4.239.1 # renovate: depName=aquaproj/aqua-registry
packages:
- name: ziglang/[email protected]+2d888a8e6 |
This issue would be solved by #3194 |
v2.36.2 is out 🎉 |
Thanks for the quick response, the fix in #3194 and the alternative solution using
|
also In the zig recipe the |
I forgot aquaproj/aqua-registry#24877 .
For now templates can't be used in
We're sorry but there is no document about it.
That's a good point.
When we added the package zig at 2022-04-05, all GitHub Releases are pre-release so we needed to use Now there are some releases, so we can remove As you mentioned there are pros and cons.
I don't have any strong opinion about this. |
Thanks for #28121.
The use case is to avoid the
No problem the list you wrote above and the source will be enough for me.
The "registry.yaml" file can be authored/maintained by a few people (or a single person). On the other hand the "aqua.yaml" files can be authored by many, under many project directories. And those many people have to remember that tool A needs "@x-v1.2.3", tool B needs "@1.2.3", tool C needs "@v1.2.3", etc. I just see that it may lead to confusion more often than expected and it could be solved for most tools, if all those differences would be always handled in "registry.yaml" files (which also change less frequently). And allow authors of "aqua.yaml" files, to declare a tool's version in more than one ways (when possible). Not something blocking for me though. Just sharing my thoughts after a day of using this nice tool.
Me neither. I would choose the releases as a source, because of the extra info that can be displayed when searching and because the missing tag-only versions are not a lot (+ all versions are still < 1.0.0). |
I see. It makes sense though we can't prioritize it.
Thank you for sharing your valuable feedback. Edit:
zig's dev versions are one of edge cases. 😅 |
Thanks, tried with anchors and it works. Although I get an LSP error on the editor, from the yaml schema (for the new property I'm using as a parent of the anchor). But it's ok for now.
I see, although I think it would be nice to support the manual edit workflow at some point, since it is frequently used in similar tools. And the declarative nature of aqua, also means that the file that you are declaring things, is easily editable. Also you can do more with the manual editing currently. For example you can not declare a tool version using the
|
You can use $ aqua g -pin cli/cli
- name: cli/cli
version: v2.60.0 |
Nice! Wrong example. |
aqua info
Overview
Custom template variables (
vars
) are not replaced when used infiles[].src
.How to reproduce
aqua.yaml
Other related code such as local Registry
registry.yaml
Executed command and output
Expected behaviour
Expected
files[].src
inwhen
vars: version: 0.14.0-dev.1954+2d888a8e6
, to becomeActual behaviour
It becomes
The text was updated successfully, but these errors were encountered: