Skip to content

bazel: write out empty files for files excluded by build tag#71

Merged
hugelgupf merged 2 commits into
u-root:mainfrom
hugelgupf:fakefile
Apr 6, 2022
Merged

bazel: write out empty files for files excluded by build tag#71
hugelgupf merged 2 commits into
u-root:mainfrom
hugelgupf:fakefile

Conversation

@hugelgupf
Copy link
Copy Markdown
Member

Instead of copying the existing file and betting that bazel/blaze will
exclude them based on their build tag, we write out a near-empty file
(with just a package declaration) instead.

This way the destination directory only contains files with package <rewritten-package-name>, rather than a mix of package <rewritten-package-name> and package main.

Instead of copying the existing file and betting that bazel/blaze will
exclude them based on their build tag, we write out a near-empty file
(with just a package declaration) instead.

This way the destination directory only contains files with `package
<rewritten-package-name>`, rather than a mix of `package
<rewritten-package-name>` and `package main`.

Signed-off-by: Chris Koch <chrisko@google.com>
@hugelgupf hugelgupf merged commit e9f8255 into u-root:main Apr 6, 2022
@hugelgupf hugelgupf deleted the fakefile branch April 6, 2022 02:32
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.

1 participant