-
Notifications
You must be signed in to change notification settings - Fork 522
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
fix: use tree artifacts via copy_directory with exports_directories_only #2996
Conversation
caded11
to
90b2c4f
Compare
@@ -22,7 +22,6 @@ ExternalNpmPackageInfo = provider( | |||
doc = "Provides information about one or more external npm packages", | |||
fields = { | |||
"direct_sources": "Depset of direct source files in these external npm package(s)", | |||
"has_directories": "True if any sources are directories", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is no longer needed since we no longer have this case as exports_directories_only now produced proper individually linkable js_library targets with package names instead of a js_library with a source directory and its package name set to the special case $node_modules_dir$
5c1bb1b
to
113cfc6
Compare
113cfc6
to
87a8bb7
Compare
87a8bb7
to
6140040
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a quick scan over it, looking good. LMK when it's green and I'll do a more careful review
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 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 ℹ️ Googlers: Go here for more info. |
b4977cb
to
141278a
Compare
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 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 ℹ️ Googlers: Go here for more info. |
141278a
to
55099ca
Compare
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 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 ℹ️ Googlers: Go here for more info. |
@googlebot I consent. |
be6881d
to
34a3a68
Compare
@gregmagolan what's the motivation behind this change? |
It fixes the exports_directories_only feature to work with RBE and with The feature originally depended on Bazel accidentally not noticing that inputs were directories, which happened to work in almost all cases. Now we make them TreeArtifacts which unfortunately bazel can't produce as InputArtifacts so a copy operation is needed. |
Thanks @alexeagle. I am about to set up RBE for my org. From what you say it sounds like I will have to turn off exports_directories_only for things to work, until this lands? Or does it only not work with both exports_directories_only and |
Doesn't work with either, is my understanding |
34a3a68
to
5fad95a
Compare
ce7ae09
to
7e8709f
Compare
03651df
to
426d4b4
Compare
…den_directory_artifacts
…ly with tree artifacts
protractor rule does not work with exports_directories_only with TreeArtifacts on Windows
…rectories_only; the two are no longer compatible
This can happen when 'static' links come from cfg='exec' binaries
426d4b4
to
cb5060c
Compare
Fixes the issue with exports_directories_only on RBE.
Removes
has_directories
fromExternalNpmPackageInfo
since it is expected that source directoriesare no longer used. This simplified
npm_umd_bundle.bzl
impl which was using this to filtering; it can nowjust check
File.is_directory
since source directories are no longer passed in.