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

adds EnvironmentField to pex_binary and related generators #17435

Merged
merged 3 commits into from
Nov 3, 2022

Conversation

chrisjrn
Copy link
Contributor

@chrisjrn chrisjrn commented Nov 2, 2022

This adds an environment field to pex_binary/pex_binaries etc.

The package goal already injects the EnvironmentName from the EnvironmentField into the relevant pex rules by way of EnvironmentAwarePackageRequest, this change just makes it possible to supply that value.

Closes #17428

@chrisjrn chrisjrn requested a review from stuhood November 2, 2022 16:49
@chrisjrn chrisjrn marked this pull request as ready for review November 2, 2022 16:49
@chrisjrn chrisjrn added the category:internal CI, fixes for not-yet-released features, etc. label Nov 2, 2022
@stuhood stuhood added this to the 2.15.x milestone Nov 2, 2022
@stuhood stuhood enabled auto-merge (squash) November 2, 2022 17:38
@chrisjrn
Copy link
Contributor Author

chrisjrn commented Nov 2, 2022

Unclear why this PR is failing -- apparently pex is running under Python 3.11 and failing to fetch an artifact?

@stuhood stuhood merged commit bf6c448 into pantsbuild:main Nov 3, 2022
chrisjrn pushed a commit to chrisjrn/pants that referenced this pull request Nov 3, 2022
…build#17435)

This adds an `environment` field to `pex_binary`/`pex_binaries` etc.

The `package` goal already injects the `EnvironmentName` from the `EnvironmentField` into the relevant pex rules by way of `EnvironmentAwarePackageRequest`, this change just makes it possible to supply that value.

Closes pantsbuild#17428
chrisjrn pushed a commit that referenced this pull request Nov 3, 2022
…y-pick of #17435) (#17457)

This adds an `environment` field to `pex_binary`/`pex_binaries` etc.

The `package` goal already injects the `EnvironmentName` from the `EnvironmentField` into the relevant pex rules by way of `EnvironmentAwarePackageRequest`, this change just makes it possible to supply that value.

Closes #17428
chrisjrn pushed a commit to chrisjrn/pants that referenced this pull request Nov 3, 2022
…build#17435)

This adds an `environment` field to `pex_binary`/`pex_binaries` etc.

The `package` goal already injects the `EnvironmentName` from the `EnvironmentField` into the relevant pex rules by way of `EnvironmentAwarePackageRequest`, this change just makes it possible to supply that value.

Closes pantsbuild#17428 
# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@stuhood stuhood mentioned this pull request Nov 11, 2022
@stuhood stuhood mentioned this pull request Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pex_binary needs an environment= field
3 participants