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

aqua up fails if version_expr is used #3435

Closed
suzuki-shunsuke opened this issue Jan 7, 2025 · 0 comments · Fixed by #3436
Closed

aqua up fails if version_expr is used #3435

suzuki-shunsuke opened this issue Jan 7, 2025 · 0 comments · Fixed by #3436
Labels
bug Something isn't working command:update
Milestone

Comments

@suzuki-shunsuke
Copy link
Member

suzuki-shunsuke commented Jan 7, 2025

aqua info

$ aqua -v
aqua version 2.42.1 (bb1bc5db0833cd260a28c9a052a8bf4c1ea25b90)

Overview

aqua up fails if version_expr is used.

How to reproduce

aqua.yaml

registries:
  - type: standard
    ref: v4.176.0 # renovate: depName=aquaproj/aqua-registry
packages:
  - name: hashicorp/terraform
    version_expr: readFile(".terraform-version")
    version_expr_prefix: v

Executed command and output

$ aqua up 
ERRO[0000] ignore a package because the package version is empty  aqua_version=2.42.1 env=darwin/arm64 program=aqua
FATA[0000] aqua failed                                   aqua_version=2.42.1 env=darwin/arm64 error="list packages" program=aqua

Expected behaviour

aqua up ignores packages which use version_expr`.

Actual behaviour

aqua up fails.

Note

go_version_file causes the same issue.

registries:
  - type: standard
    ref: v4.176.0 # renovate: depName=aquaproj/aqua-registry
packages:
  - name: golang/go
    go_version_file: go.mod
$ aqua up
ERRO[0000] ignore a package because the package version is empty  aqua_version=2.42.1 env=darwin/arm64 program=aqua
FATA[0000] aqua failed                                   aqua_version=2.42.1 env=darwin/arm64 error="list packages" program=aqua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working command:update
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant