Skip to content

Releases: aquaproj/aqua

v2.41.0-0

29 Dec 09:09
v2.41.0-0
f774735
Compare
Choose a tag to compare
v2.41.0-0 Pre-release
Pre-release

v2.40.0

16 Dec 22:37
v2.40.0
608eb7b
Compare
Choose a tag to compare

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

15 Dec 13:58
v2.40.0-0
b477798
Compare
Choose a tag to compare
v2.40.0-0 Pre-release
Pre-release

v2.39.0...v2.40.0-0

#3363 feat: support getting package versions from external files

v2.39.1

15 Dec 23:12
v2.39.1
5737f8b
Compare
Choose a tag to compare

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

14 Dec 05:05
v2.39.0
22cfba2
Compare
Choose a tag to compare

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.

image image

v2.39.0-0

14 Dec 04:55
v2.39.0-0
fa45507
Compare
Choose a tag to compare
v2.39.0-0 Pre-release
Pre-release

v2.38.4

05 Dec 23:56
v2.38.4
fa8feef
Compare
Choose a tag to compare

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

05 Dec 14:34
v2.38.3
53d9f33
Compare
Choose a tag to compare

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

30 Nov 23:03
v2.38.2
ae39729
Compare
Choose a tag to compare

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

27 Nov 23:12
v2.38.1
46013b8
Compare
Choose a tag to compare

Pull Requests | Issues | v2.38.0...v2.38.1

Fixes

#3297 completion: Improve the completion settings suggested in aqua completion --help @akinomyoga