https://pantsbuild.org/ logo
#general
Title
# general
a

average-flag-94768

04/24/2023, 6:42 PM
Is it possible to patch a helm chart target version, with an env var during the package goal?
h

happy-kitchen-89482

04/25/2023, 1:09 PM
Hi, sorry, not very familiar with the helm backend.
cc @witty-family-13337 who knows more
w

witty-family-13337

04/25/2023, 1:39 PM
this is not supported, env vars can only be used as inline values for now
a

average-flag-94768

04/25/2023, 1:41 PM
Ah a shame, we tend to use a just wrapper around pants so I manually use yq to patch the version in the Chart.yaml every time and set it back after but it is a bit very hacky.
w

witty-family-13337

04/25/2023, 1:46 PM
this could be evaluated as a possibility, there has been an occasion in the past in which something similar was requested but wasn't added as some users may want to read the version value from a different source (i.e. env var VS a VCS tag, etc)
a

average-flag-94768

04/25/2023, 1:52 PM
The env var we are using is just a git describe so using a VCS tag would also be great.
h

happy-kitchen-89482

04/25/2023, 2:45 PM
Sounds like a good use-case for
vcs_version
, which currently is usable only in the Python context
@average-flag-94768 if you could add your use case in a comment there that would be very helpful
👍 2