Releases: aquaproj/aqua
v2.41.0-0
v2.40.0
Pull Requests | Issues | v2.39.1...v2.40.0
Features
#3363 Support getting package versions from external files
This release enables you to get package versions from external files.
This feature is useful when:
- Migrate any tool to aqua gradually
- Support aqua and other tools
This release adds some fields to aqua.yaml's packages.
- version_expr: An expr expression to read external files
- version_expr_prefix: A prefix of version
e.g.
packages:
- name: hashicorp/terraform
version_expr: |
"v" + readFile('.terraform-version')
version_expr: |
readJSON('version.json').version
version_expr_prefix: cli-
version_expr: |
readYAML('version.yaml').version
version_expr
is evaluated using expr.
The following custom functions are available.
- readFile("file path"): reads a file and returns a file content
- readJSON("file path"): read and unmarshal a JSON file and returns an object
- readYAML("file path"): read and unmarshal a YAML file and returns an object
⚠️ Constraint of version_expr
Allowing to read external files is potentially risky in terms of security.
Malicious users can try to read secret files and expose secrets via log using version_expr
.
To prevent such a threat, we restrict the evaluation result of version_expr
.
It must match with the regular expression ^v?\d+\.\d+(\.\d+)*[.-]?((alpha|beta|dev|rc)[.-]?)?\d*
.
v2.40.0-0
#3363 feat: support getting package versions from external files
v2.39.1
Pull Requests | Issues | v2.39.0...v2.39.1
Fixes
#3365 cargo: Normalize the install path of cargo packages
Others
#3361 Refactor reading config
v2.39.0
Pull Requests | Issues | v2.38.4...v2.39.0
Features
#3354 policy: add a code comment for YAML Language Servers to a generated file aqua-policy.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/policy.json
#3352 init: Add a code comment for YAML Language Servers to a generated file aqua.yaml
# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/aqua-yaml.json
These code comments are useful when you edit files with editors such as VSCode.
v2.39.0-0
v2.38.4
Pull Requests | Issues | v2.38.3...v2.38.4
Bug Fixes
#3337 generate-registry: Fix a bug that unused replacements are added
v2.38.3
Pull Requests | Issues | v2.38.2...v2.38.3
Bug Fixes
#3325 #3333 Fix a bug that aqua g -i
removes comments from packages
v2.38.2
Pull Requests | Issues | v2.38.1...v2.38.2
🐛 Bug Fixes
#3307 generate-registry: Fix a bug that description isn't formatted
v2.38.1
Pull Requests | Issues | v2.38.0...v2.38.1
Fixes
#3297 completion: Improve the completion settings suggested in aqua completion --help
@akinomyoga