Skip to content

Propagate licences to go_repo generated targets for stamping#365

Open
jwong-beep wants to merge 1 commit into
please-build:masterfrom
jwong-beep:pump-licences-down-2
Open

Propagate licences to go_repo generated targets for stamping#365
jwong-beep wants to merge 1 commit into
please-build:masterfrom
jwong-beep:pump-licences-down-2

Conversation

@jwong-beep

Copy link
Copy Markdown
Contributor

Continuation of #364

The approach is simply to take an extra parameter in please_go generate called --licence, which can be supplied multiple times for modules that are multi-licenced.

@jwong-beep jwong-beep changed the title Pump licences down 2 Propagate licences to go_repo generated targets for stamping Jul 2, 2026
@jwong-beep jwong-beep force-pushed the pump-licences-down-2 branch 3 times, most recently from 40a22c7 to 4eae6e3 Compare July 3, 2026 12:21
The go_repo rule generates a BUILD file with a go_library per package in
the repo. If the licences are not passed to go_library, targets that
depend directly on thes go_repo generated go_library targets will not
have licences and accepted licences when stamped.

This change introduces a new `--licence` flag to `please_go generate` so
it can generate build rules for module packages that contain them.
@jwong-beep jwong-beep force-pushed the pump-licences-down-2 branch from 4eae6e3 to 2f31b11 Compare July 3, 2026 12: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