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

hclwrite: Fix unstable list returned by Body.Blocks() #313

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

minamijoyo
Copy link
Contributor

Fixes #310

The type of Body.items is a nodeSet (That is, map[*node]struct{}),
so the order of the list returned by Body.Blocks () was unstable.

Fixes hashicorp#310

The type of `Body.items` is a `nodeSet` (That is, `map[*node]struct{}`),
so the order of the list returned by Body.Blocks () was unstable.
@apparentlymart
Copy link
Contributor

Ahh, whoops! Thanks for finding and fixing this, @minamijoyo!

@apparentlymart apparentlymart added bug hclwrite v2 Relates to the v2 line of releases labels Oct 17, 2019
@apparentlymart apparentlymart merged commit c21e319 into hashicorp:hcl2 Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hclwrite v2 Relates to the v2 line of releases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants