A dictionary of templated variables in registry and query mechanizm #1496
-
Some of the packages require setting of environment variables to make them work. For example golang require GOPATH (for old versions of go), java require JAVA_PATH. I set environment variables in For Java specifically I have following line.
My concern is that the user of the package need to know the layout of the package. The idea is to let aqua define a dictionary and have a mechanism to get values from dictionary. packages:
- name: java/openjdk
type: http
repo_owner: openjdk
repo_name: jdk
description: JDK main-line development https://openjdk.org/projects/jdk
replacements:
amd64: x64
arm64: aarch64
darwin: macos
environment:
- name: "JAVA_HOME"
value: jdk-{{.Version}}.jdk/Contents/Home Currently aqua doesn't care about fields it doesn't know about. So I changed the
This doesn't solve my problem for two reasons.
I am thinking about the possibility of a query mechanism in the aqua itself.
Then I can use the following in my
I can also use it to set variables in fish:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thank you for your proposal. Unfortunately, we don't work on this proposal soon, because
On the other hand, this proposal is interesting so we'll consider when we have a time. |
Beta Was this translation helpful? Give feedback.
Thank you for your proposal.
Unfortunately, we don't work on this proposal soon, because
On the other hand, this proposal is interesting so we'll consider when we have a time.
We have to design simple user interface.