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

Terraform: downgrade python-hcl2 from 4.3.2 to 4.3.0 to work around parsing issues #21361

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

purajit
Copy link
Contributor

@purajit purajit commented Aug 28, 2024

python-hcl2 4.3.1+ has some serious issues with parsing certain kinds of expressions, like multi-line
ternaries. The issues opened can be seen here.

It looks like 4.3.5 has fixed a bunch of the issues, but I'm still seeing some errors on our repo, and I think
it's better to keep to 4.3.0 until the authors of the issues close them and we're sure there are no regressions.

Also, 4.3.0 is still compatible with py3.12, so it doesn't undo the efforts of #20365.

Generated with pants run build-support/bin/generate_builtin_lockfiles.py -- terraform-hcl2-parser.

@purajit purajit marked this pull request as ready for review August 28, 2024 01:39
@purajit purajit changed the title Pin python-hcl2 to <4.3.2 Pin python-hcl2 to <=4.3.0 Aug 29, 2024
Copy link
Contributor

@huonw huonw left a comment

Choose a reason for hiding this comment

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

Thanks for this.

@huonw huonw added the category:bugfix Bug fixes for released features label Aug 29, 2024
@huonw huonw added this to the 2.21.x milestone Aug 29, 2024
@huonw
Copy link
Contributor

huonw commented Aug 29, 2024

I've marked this for cherrypicking back to 2.21.x and 2.22.x to have it come out in patch releases of those branches. I've updated the PR title to be more specific, because it's what will appear in the release notes of those patch releases.

@huonw huonw changed the title Pin python-hcl2 to <=4.3.0 Downgrade python-hcl2 to <=4.3.0 to work around parsing issues Aug 29, 2024
@huonw huonw changed the title Downgrade python-hcl2 to <=4.3.0 to work around parsing issues Downgrade python-hcl2 from 4.3.2 to 4.3.0 to work around parsing issues Aug 29, 2024
@huonw huonw changed the title Downgrade python-hcl2 from 4.3.2 to 4.3.0 to work around parsing issues Terraform: downgrade python-hcl2 from 4.3.2 to 4.3.0 to work around parsing issues Aug 29, 2024
@huonw huonw merged commit 97a6b2f into pantsbuild:main Aug 29, 2024
25 checks passed
WorkerPants pushed a commit that referenced this pull request Aug 29, 2024
…arsing issues (#21361)

`python-hcl2` 4.3.1+ has some serious issues with parsing certain kinds
of expressions, like multi-line
ternaries. The issues opened can be seen
[here](https://github.com/amplify-education/python-hcl2/issues?q=is%3Aissue+is%3Aopen+%22unexpected+token%22).

It looks like 4.3.5 has fixed a bunch of the issues, but I'm still
seeing some errors on our repo, and I think
it's better to keep to 4.3.0 until the authors of the issues close them
and we're sure there are no regressions.

Also, 4.3.0 is still compatible with py3.12, so it doesn't undo the
efforts of #20365.

Generated with `pants run
build-support/bin/generate_builtin_lockfiles.py --
terraform-hcl2-parser`.
WorkerPants pushed a commit that referenced this pull request Aug 29, 2024
…arsing issues (#21361)

`python-hcl2` 4.3.1+ has some serious issues with parsing certain kinds
of expressions, like multi-line
ternaries. The issues opened can be seen
[here](https://github.com/amplify-education/python-hcl2/issues?q=is%3Aissue+is%3Aopen+%22unexpected+token%22).

It looks like 4.3.5 has fixed a bunch of the issues, but I'm still
seeing some errors on our repo, and I think
it's better to keep to 4.3.0 until the authors of the issues close them
and we're sure there are no regressions.

Also, 4.3.0 is still compatible with py3.12, so it doesn't undo the
efforts of #20365.

Generated with `pants run
build-support/bin/generate_builtin_lockfiles.py --
terraform-hcl2-parser`.
@WorkerPants
Copy link
Member

I tried to automatically cherry-pick this change back to each relevant milestone, so that it is available in those older releases of Pants.

✔️ 2.21.x

Successfully opened #21364.

✔️ 2.22.x

Successfully opened #21365.


Thanks again for your contributions!

🤖 Beep Boop here's my run link

huonw pushed a commit that referenced this pull request Aug 29, 2024
…arsing issues (Cherry-pick of #21361) (#21364)

`python-hcl2` 4.3.1+ has some serious issues with parsing certain kinds
of expressions, like multi-line
ternaries. The issues opened can be seen
[here](https://github.com/amplify-education/python-hcl2/issues?q=is%3Aissue+is%3Aopen+%22unexpected+token%22).

It looks like 4.3.5 has fixed a bunch of the issues, but I'm still
seeing some errors on our repo, and I think
it's better to keep to 4.3.0 until the authors of the issues close them
and we're sure there are no regressions.

Also, 4.3.0 is still compatible with py3.12, so it doesn't undo the
efforts of #20365.

Generated with `pants run
build-support/bin/generate_builtin_lockfiles.py --
terraform-hcl2-parser`.

Co-authored-by: purajit <[email protected]>
huonw pushed a commit that referenced this pull request Sep 9, 2024
…arsing issues (Cherry-pick of #21361) (#21365)

`python-hcl2` 4.3.1+ has some serious issues with parsing certain kinds
of expressions, like multi-line
ternaries. The issues opened can be seen
[here](https://github.com/amplify-education/python-hcl2/issues?q=is%3Aissue+is%3Aopen+%22unexpected+token%22).

It looks like 4.3.5 has fixed a bunch of the issues, but I'm still
seeing some errors on our repo, and I think
it's better to keep to 4.3.0 until the authors of the issues close them
and we're sure there are no regressions.

Also, 4.3.0 is still compatible with py3.12, so it doesn't undo the
efforts of #20365.

Generated with `pants run
build-support/bin/generate_builtin_lockfiles.py --
terraform-hcl2-parser`.

Co-authored-by: purajit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants