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

Propagate scie-pants' version into the pants invocation #246

Merged
merged 3 commits into from
Aug 23, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Aug 23, 2023

This sets the SCIE_PANTS_VERSION env var when invoking pants, so that pants can read it and encourage users to upgrade if they need to.

For example, 2.17 will be the last release that supports the PyPI-based distribution model and Pants 2.18 will require scie-pants 0.9 or greater. So, in pantsbuild/pants#19600, we're planning to have pants 2.17 encourage users to upgrade scie-pants if it's too old.

This PR preps for the release too, by bumping the version and adding a changelog entry. As part of this, I noticed the 0.9.0 release was accidentally configured as 0.9.1 in Cargo.toml, so updated the changelog to mention this.

@huonw huonw force-pushed the feature/propagate-scie-pants-version branch from 5cc176b to 6e2daa5 Compare August 23, 2023 01:02
@thejcannon thejcannon self-requested a review August 23, 2023 01:11
Comment on lines +16 to +17
NB. this version was published as 0.9.0, but `PANTS_BOOTSTRAP_VERSION=report pants` reports itself
as 0.9.1.
Copy link
Member

Choose a reason for hiding this comment

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

Weird

Copy link
Contributor Author

@huonw huonw Aug 23, 2023

Choose a reason for hiding this comment

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

I think there was just a small mistake in setting the version in Cargo.toml in #239. I don't think it causes problems, just thought it'd be sensible to call out why 0.9.1 seems to be missed so people don't get confused.

Copy link
Member

Choose a reason for hiding this comment

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

I have no clue how I messed that up, lol

@huonw huonw merged commit e52a6d3 into pantsbuild:main Aug 23, 2023
@huonw huonw deleted the feature/propagate-scie-pants-version branch August 23, 2023 01:59
huonw added a commit that referenced this pull request Aug 23, 2023
I tagged the wrong commit for releasing 0.9.2
(fdceed6, instead of the
e52a6d3 for #246), sooo... this skips
0.9.2 and preps to release 0.9.3 instead. Maybe I'll get it right this
time.

I cancelled the build for 0.9.2, because that'd be confusing.
huonw added a commit to pantsbuild/pants that referenced this pull request Aug 23, 2023
This updates Pants to require and check for the scie-pants launcher
binary version: we need version 0.9 or earlier, to have support for the
new distribution model. This syncs with
pantsbuild/scie-pants#246 (which will become
scie-pants 0.9.2 / 0.9.3), which sets the `SCIE_PANTS_VERSION`
environment variable when running pants.

This will be cherry-picked back as far as we support, to help users
upgrade their launcher earlier.

Fixes #19600
huonw added a commit to huonw/pants that referenced this pull request Aug 23, 2023
…uild#19654)

This updates Pants to require and check for the scie-pants launcher
binary version: we need version 0.9 or earlier, to have support for the
new distribution model. This syncs with
pantsbuild/scie-pants#246 (which will become
scie-pants 0.9.2 / 0.9.3), which sets the `SCIE_PANTS_VERSION`
environment variable when running pants.

This will be cherry-picked back as far as we support, to help users
upgrade their launcher earlier.

Fixes pantsbuild#19600
thejcannon pushed a commit to pantsbuild/pants that referenced this pull request Aug 23, 2023
…-pick of #19654) (#19655)

This updates Pants to require and check for the scie-pants launcher
binary version: we need version 0.9 or earlier, to have support for the
new distribution model. This syncs with
pantsbuild/scie-pants#246 (which will become
scie-pants 0.9.2 / 0.9.3), which sets the `SCIE_PANTS_VERSION`
environment variable when running pants.

This will be cherry-picked back as far as we support, to help users
upgrade their launcher earlier.

Fixes #19600
github-actions bot pushed a commit to pantsbuild/pants that referenced this pull request Aug 29, 2023
This updates Pants to require and check for the scie-pants launcher
binary version: we need version 0.9 or earlier, to have support for the
new distribution model. This syncs with
pantsbuild/scie-pants#246 (which will become
scie-pants 0.9.2 / 0.9.3), which sets the `SCIE_PANTS_VERSION`
environment variable when running pants.

This will be cherry-picked back as far as we support, to help users
upgrade their launcher earlier.

Fixes #19600
huonw added a commit to pantsbuild/pants that referenced this pull request Aug 29, 2023
…-pick of #19654) (#19694)

This updates Pants to require and check for the scie-pants launcher
binary version: we need version 0.9 or later, to have support for the
new distribution model. This syncs with
pantsbuild/scie-pants#246 (which will become
scie-pants 0.9.2 / 0.9.3), which sets the `SCIE_PANTS_VERSION`
environment variable when running pants.

This will be cherry-picked back as far as we support, to help users
upgrade their launcher earlier.

Fixes #19600

Co-authored-by: Huon Wilson <huon@exoflare.io>
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.

2 participants