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

Obey PANTS_BOOTSTRAP_URLS properly, update to science 0.2.2 #293

Merged
merged 4 commits into from
Sep 28, 2023

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Sep 26, 2023

This updates to https://github.com/a-scie/lift/releases/tag/v0.2.2, which has diagnostics to detect invalid/ignored entries in the configuration files. This detects two:

  • the scie-pants.bin file wasn't being marked as executable properly... which suggests it doesn't need to be
  • the PANTS_BOOTSTRAP_URLS env var wasn't being passed through to ptex properly, and thus redirecting the downloads wasn't working as intended.

Fixes #243

@@ -40,7 +40,7 @@ members = [
# N.B.: We name the scie-pants binary scie-pants.bin since the scie itself is named scie-pants
# which would conflict when packaging.
name = "scie-pants.bin"
executable = true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The error for this one referred to files[1].executable which appears to be 1-indexed (AFAICT, this is the first entry in the files list); is that expected?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's expected, but perhaps a bad choice. It carried over from my Pex lockfile parsing diagnostics. There I saw a large audience was comprised of ML folks and I've been continually surprised by how much ML they know combined with how little programming language familiarity they have. I should probably just add a parenthetical to diagnostic messages that array indexes are X-based.

@huonw

This comment was marked as resolved.

@huonw huonw requested review from kaos and jsirois September 27, 2023 03:14
package/scie-pants.toml Outdated Show resolved Hide resolved
package/scie-pants.toml Show resolved Hide resolved
@huonw huonw changed the title Update to science 0.2.2 Obey PANTS_BOOTSTRAP_URLS properly, update to science 0.2.2 Sep 27, 2023
@huonw huonw merged commit 76eb5d1 into pantsbuild:main Sep 28, 2023
5 checks passed
@huonw huonw deleted the huonw/upgrade-science branch September 28, 2023 03:15
huonw added a commit that referenced this pull request Sep 28, 2023
This adds a test for #243 (which could've/should've been in #293). It
also tweaks the documentation to put the "firewall support" docs in
their own section, so that it can be directly linked more easily.

The commits are individually reviewable.
@huonw huonw mentioned this pull request Sep 28, 2023
huonw added a commit that referenced this pull request Sep 29, 2023
The only user-visible feature is #293, plus the doc changes in #296.
There's various (hopefully, internal-only) dependency upgrades and
similar.

Full changes:
v0.10.2...91477f6

([This time](#289), I
remembered to bump `Cargo.lock`.)
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.

PANTS_BOOTSTRAP_URLS is not honored by scie-pants
2 participants