Skip to content

cherry-pick Vault changes to Nomad HCL1 branch#760

Merged
tgross merged 1 commit into
hashicorp:v1.0.1-nomadfrom
tgross:v1.0.1-nomad
Jun 19, 2025
Merged

cherry-pick Vault changes to Nomad HCL1 branch#760
tgross merged 1 commit into
hashicorp:v1.0.1-nomadfrom
tgross:v1.0.1-nomad

Conversation

@tgross
Copy link
Copy Markdown
Member

@tgross tgross commented Jun 18, 2025

For reasons of backwards compatibility, Nomad uses an older branch of HCL1 (v1.0.1-nomad) and HCL2 (v2.20.2-nomad-1), and backports a limited set of changes to those branches.

But the Vault API also has their own HCL1 branch, currently tagged as v1.0.1-vault-7. Normally this isn't a problem because Nomad pins to our own branch and we don't call any of the Vault API package's HCL code anyways. But in #707 some functions were changed that break our build (ref hashicorp/nomad#26006) unless we backport them.

This PR cherry-picks the Vault HCL1 changes to the Nomad HCL1 branch. I've tested this against our configuration parsing tests in Nomad and that fixes the build.

…apper

Add functions to replicate old HCL V1 Behavior for backwards compatability
Copy link
Copy Markdown

@abhijeetviswa abhijeetviswa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving the cherry pick. I haven't reviewed the code itself. That's been done in #707.

Copy link
Copy Markdown
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@tgross tgross merged commit 955ab59 into hashicorp:v1.0.1-nomad Jun 19, 2025
1 check passed
tgross added a commit to hashicorp/nomad that referenced this pull request Jun 20, 2025
For reasons of backwards compatibility, Nomad uses an older branch of
HCL1 (`v1.0.1-nomad`) and HCL2 (`v2.20.2-nomad-1`) and backports a limited set
of changes to those branches.

But the Vault API also has their own HCL1 branch, currently tagged as
`v1.0.1-vault-7`. Normally this isn't a problem because Nomad pins to our own
branch and we don't call any of the Vault API package's HCL code anyways. But in
Vault's branch some functions were changed that break our build unless we
backport them.

We've backported enough of Vault's changes to make our HCL1 branch build, and
now have tags on the HCL repo so that we can pin to specific tags instead of
random commits.

Fixes: https://hashicorp.atlassian.net/browse/NMD-850
Fixes: #26006
Ref: hashicorp/hcl#760
tgross added a commit to hashicorp/nomad that referenced this pull request Jun 23, 2025
For reasons of backwards compatibility, Nomad uses an older branch of
HCL1 (`v1.0.1-nomad`) and HCL2 (`v2.20.2-nomad-1`) and backports a limited set
of changes to those branches.

But the Vault API also has their own HCL1 branch, currently tagged as
`v1.0.1-vault-7`. Normally this isn't a problem because Nomad pins to our own
branch and we don't call any of the Vault API package's HCL code anyways. But in
Vault's branch some functions were changed that break our build unless we
backport them.

We've backported enough of Vault's changes to make our HCL1 branch build, and
now have tags on the HCL repo so that we can pin to specific tags instead of
random commits.

Fixes: https://hashicorp.atlassian.net/browse/NMD-850
Fixes: #26006
Ref: hashicorp/hcl#760
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants