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

Expand make variables in env #788

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

illicitonion
Copy link
Contributor

@illicitonion illicitonion commented Sep 20, 2021

This allows toolchains to bring along files and for those files to be
referenced during the build.

This is a slightly breaking change - any $s currently present in env var
attributes which are not consumed by expand_location will need to be
escaped with a second $, because Make-variable expansion requires that
escaping. See the example change done to examples/third_party/openssl/BUILD.openssl.bazel

@UebelAndre
Copy link
Collaborator

bazel-contrib/rules_perl#27 seemed to be the blocker here.

@illicitonion illicitonion force-pushed the expand-make-vars branch 5 times, most recently from db41223 to 2b94179 Compare October 18, 2021 10:17
@illicitonion illicitonion marked this pull request as ready for review October 18, 2021 10:32
@illicitonion
Copy link
Contributor Author

@UebelAndre I think this is ready for review now :)

Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks for putting this together!

One suggestion if you don't mind 😅

examples/third_party/openssl/openssl_repositories.bzl Outdated Show resolved Hide resolved
@UebelAndre
Copy link
Collaborator

Seems like CI ran into a flake? Commit amend and try again?

@UebelAndre
Copy link
Collaborator

Uh oh

(19:30:34) WARNING: Download from https://github.com/libexpat/libexpat/releases/download/R_2_4_1/expat-2.4.1.tar.gz failed: class java.io.IOException GET returned 403 Forbidden

This allows toolchains to bring along files and for those files to be
referenced during the build.

This is a slightly breaking change - any $s currently present in env var
attributes which are not consumed by expand_location will need to be
escaped with a second $, because Make-variable expansion requires that
escaping. See the example change done to examples/third_party/openssl/BUILD.openssl.bazel
@google-cla
Copy link

google-cla bot commented Oct 19, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@illicitonion
Copy link
Contributor Author

@googlebot I consent.

@google-cla
Copy link

google-cla bot commented Oct 19, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

This demonstrates that toolchains can be propery used in
rules_foreign_cc rules.

rules_perl doesn't currently have a Windows toolchain, but when it does,
we can stop bringing along our own.
@UebelAndre UebelAndre merged commit ec9c9a4 into bazel-contrib:main Oct 19, 2021
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