-
Notifications
You must be signed in to change notification settings - Fork 179
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: Not all runfiles are single files #860
Merged
aiuto
merged 3 commits into
bazelbuild:main
from
ewianda:fix-handle-runfile-directories
Apr 29, 2024
Merged
fix: Not all runfiles are single files #860
aiuto
merged 3 commits into
bazelbuild:main
from
ewianda:fix-handle-runfile-directories
Apr 29, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cgrindel
reviewed
Apr 23, 2024
pkg/private/pkg_files.bzl
Outdated
@@ -436,7 +435,7 @@ def add_from_default_info( | |||
_check_dest(mapping_context.content_map, d_path, rf, src.label, mapping_context.allow_duplicates_with_different_content) | |||
mapping_context.content_map[d_path] = _DestFile( | |||
src = rf, | |||
entry_type = ENTRY_IS_FILE, | |||
entry_type = ENTRY_IS_DIR if rf.is_directory else ENTRY_IS_FILE, |
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.
Is there an example/test that we can add to ensure that this works?
Please add a test for this. We need those to prevent regressing the next
time someone fixes things.
…On Tue, Apr 23, 2024 at 2:38 PM Chuck Grindel ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In pkg/private/pkg_files.bzl
<#860 (comment)>:
> @@ -436,7 +435,7 @@ def add_from_default_info(
_check_dest(mapping_context.content_map, d_path, rf, src.label, mapping_context.allow_duplicates_with_different_content)
mapping_context.content_map[d_path] = _DestFile(
src = rf,
- entry_type = ENTRY_IS_FILE,
+ entry_type = ENTRY_IS_DIR if rf.is_directory else ENTRY_IS_FILE,
Is there an example/test that we can add to ensure that this works?
—
Reply to this email directly, view it on GitHub
<#860 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXHHHEOAHB5HOZXZQ3WDITY62TBZAVCNFSM6AAAAABGTVFH6WVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMJYGAZTENZYGE>
.
You are receiving this because your review was requested.Message ID:
<bazelbuild/rules_pkg/pull/860/review/2018032781 ***@***.***
.com>
|
Handle cases where the defaultInfo file is a directory
ewianda
force-pushed
the
fix-handle-runfile-directories
branch
from
April 24, 2024 15:04
76eee63
to
b646724
Compare
ewianda
force-pushed
the
fix-handle-runfile-directories
branch
4 times, most recently
from
April 24, 2024 15:41
394ad43
to
f3f3d1e
Compare
aiuto
reviewed
Apr 24, 2024
ewianda
force-pushed
the
fix-handle-runfile-directories
branch
from
April 24, 2024 22:33
f3f3d1e
to
1a87c87
Compare
This should build and test clean, with no implicit flags
aiuto
approved these changes
Apr 29, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Handle cases where the defaultInfo file is a directory