Skip to content

Add definitions parameter to go_repo - #378

Merged
chrisnovakovic merged 2 commits into
please-build:masterfrom
chrisnovakovic:go_repo-definitions
Sep 2, 2026
Merged

Add definitions parameter to go_repo#378
chrisnovakovic merged 2 commits into
please-build:masterfrom
chrisnovakovic:go_repo-definitions

Conversation

@chrisnovakovic

Copy link
Copy Markdown
Contributor

This sets the given value of definitions on go_binary and cgo_binary targets generated within the subrepo. This is useful for replicating the behaviour of third-party binary build pipelines in Please (e.g. by allowing version strings to be set dynamically during linking).

This sets the given value of `definitions` on `go_binary` and
`cgo_binary` targets generated within the subrepo. This is useful for
replicating the behaviour of third-party binary build pipelines in
Please (e.g. by allowing version strings to be set dynamically during
linking).
Comment thread build_defs/go.build_defs
Comment thread build_defs/go.build_defs
label_args,
large_package_args,
f"--src_root={pkgRoot}",
f"--third_part_folder='{third_party_path}'",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Really, it's third_part_folder?! 😮‍💨

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Really, it's third_part_folder?! 😮‍💨

Yeah, spotted this a while ago and have been meaning to fix it (and rename folder to dir)...

@chrisnovakovic
chrisnovakovic merged commit 9b287a2 into please-build:master Sep 2, 2026
5 checks passed
@chrisnovakovic
chrisnovakovic deleted the go_repo-definitions branch September 2, 2026 13: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.

3 participants