Skip to content

go/tools/gopackagesdriver: don't filter GoFiles for tags#4519

Merged
jayconrod merged 1 commit intobazel-contrib:masterfrom
fionera:dont-filer-go-files
Nov 24, 2025
Merged

go/tools/gopackagesdriver: don't filter GoFiles for tags#4519
jayconrod merged 1 commit intobazel-contrib:masterfrom
fionera:dont-filer-go-files

Conversation

@fionera
Copy link
Copy Markdown
Contributor

@fionera fionera commented Nov 22, 2025

GoFiles should contain all files, ignoring any build tags

@fmeum fmeum requested a review from jayconrod November 22, 2025 05:32
Copy link
Copy Markdown
Member

@fmeum fmeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GoFiles should contain all files, ignoring any build tags
@fmeum fmeum force-pushed the dont-filer-go-files branch from 9157dd6 to 769b0bb Compare November 22, 2025 05:36
Copy link
Copy Markdown
Collaborator

@jayconrod jayconrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems correct. I'm a little worried about tools seeing multiple definitions in different files (e.g., a Windows implementation and a Linux implementation), but the documentation is pretty clear about the distinction between GoFiles and CompiledGoFiles, so we should follow that.

@jayconrod jayconrod merged commit 1be32b0 into bazel-contrib:master Nov 24, 2025
1 check passed
@fionera fionera deleted the dont-filer-go-files branch November 25, 2025 01:24
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