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

fix: Not all runfiles are single files #860

Merged
merged 3 commits into from
Apr 29, 2024

Conversation

ewianda
Copy link
Contributor

@ewianda ewianda commented Apr 22, 2024

Handle cases where the defaultInfo file is a directory

@@ -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,
Copy link
Collaborator

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?

@aiuto
Copy link
Collaborator

aiuto commented Apr 24, 2024 via email

Handle cases where the defaultInfo file is a directory
@ewianda ewianda force-pushed the fix-handle-runfile-directories branch from 76eee63 to b646724 Compare April 24, 2024 15:04
@ewianda
Copy link
Contributor Author

ewianda commented Apr 24, 2024

@aiuto @cgrindel I added a test case.

@ewianda ewianda force-pushed the fix-handle-runfile-directories branch 4 times, most recently from 394ad43 to f3f3d1e Compare April 24, 2024 15:41
tests/tar/BUILD Outdated Show resolved Hide resolved
@ewianda ewianda force-pushed the fix-handle-runfile-directories branch from f3f3d1e to 1a87c87 Compare April 24, 2024 22:33
This should build and test clean, with no implicit flags
@aiuto aiuto merged commit 9616a33 into bazelbuild:main Apr 29, 2024
2 checks passed
@ewianda ewianda deleted the fix-handle-runfile-directories branch April 29, 2024 14:42
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.

3 participants