Skip to content

fix: Not all runfiles are single files#860

Merged
aiuto merged 3 commits intobazelbuild:mainfrom
ewianda:fix-handle-runfile-directories
Apr 29, 2024
Merged

fix: Not all runfiles are single files#860
aiuto merged 3 commits intobazelbuild:mainfrom
ewianda:fix-handle-runfile-directories

Conversation

@ewianda
Copy link
Contributor

@ewianda ewianda commented Apr 22, 2024

Handle cases where the defaultInfo file is a directory

@ewianda ewianda requested review from aiuto and cgrindel as code owners April 22, 2024 23:08
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
@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
@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