-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Support getting package versions from other files #3061
Comments
expr version_expr: |
readJSON("foo.json").version version_expr: |
readYAML("foo.yaml").version version_expr: |
"v" + readFile(".terraform-version") |
|
SolutionRestrict the value of https://pkg.go.dev/github.com/hashicorp/go-version#NewSemver We can complement a prefix such as |
template version_template: |
{{(readJSON "foo.json").version}} version_template: |
{{(readYAML "foo.yaml").version}}' version_template: |
v{{readFile ".terraform-version"}} |
I'm wondering if this feature is really necessary.
This makes sense, but actually I don't have strong motivation. |
semver's pre-release can include secrets, so we need to restrict the pattern of pre-release. 1.0
|
Feature Overview
Similar to #2632 .
go_version_file
#2632Support getting package versions from other files.
Why is the feature needed?
To share the version definition with other tools.
To make DRY.
Workaround
No response
Example Code
Note
The text was updated successfully, but these errors were encountered: