Skip to content

Licences param for go_library, go_binary and cgo_library#364

Merged
jwong-beep merged 1 commit into
please-build:masterfrom
jwong-beep:pump-licences-down
Jul 3, 2026
Merged

Licences param for go_library, go_binary and cgo_library#364
jwong-beep merged 1 commit into
please-build:masterfrom
jwong-beep:pump-licences-down

Conversation

@jwong-beep

@jwong-beep jwong-beep commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The go_repo rule generates a BUILD file with a go_library per package in the repo. Due to go_library currently not accepting a licences parameter, in addition to pukulint replacing top level deps with package level deps, the licences parameter recorded in the go_repo does not get passed down to these granular targets.

Since the build graph is now depending on the packages of these repos instead of the repos, we'll need to pass licences down to the library and binary level so stamping can produce the accepted licences

Comment thread build_defs/go.build_defs
@jwong-beep jwong-beep force-pushed the pump-licences-down branch from ab3be4c to a20b3a9 Compare July 2, 2026 15:54
@jwong-beep jwong-beep requested a review from chrisnovakovic July 2, 2026 15:56
@jwong-beep jwong-beep force-pushed the pump-licences-down branch 2 times, most recently from 6008fd3 to f7e88da Compare July 2, 2026 18:56
@jwong-beep jwong-beep changed the title Propagate licences to go_repo generated targets for stamping Licences param for go_library, go_binary and cgo_library Jul 2, 2026
@jwong-beep jwong-beep force-pushed the pump-licences-down branch from f7e88da to 3cb9e01 Compare July 2, 2026 19:27
Comment thread build_defs/go.build_defs Outdated
Comment thread build_defs/cgo.build_defs Outdated
Co-authored-by: Chris Novakovic <chris@chrisn.me.uk>
@jwong-beep jwong-beep force-pushed the pump-licences-down branch from 90ebe7e to b57b35b Compare July 3, 2026 11:52
@jwong-beep jwong-beep merged commit 478ec39 into please-build:master Jul 3, 2026
5 checks passed
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.

2 participants