Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrations/golang: Use full package paths when building. #1310

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

nichtverstehen
Copy link
Contributor

Carefully tracking the path to the built package within the Go module allows us to refer to binaries in a build plan across modules.

Previously given the following specification in example.com/foo/xxx/binary.cue

build_plan: [{binary: "example.com/bar/yyy"}]

we would try to build a package with the desired local name (yyy), but within the "calling" module (example.com/foo/yyy).

Carefully tracking the path to the built package within the Go module allows us to refer to binaries in a build plan across modules.

Previously given the following specification in example.com/foo/xxx/binary.cue

    build_plan: [{binary: "example.com/bar/yyy"}]

we would try to build a package with the desired local name (yyy), but within the "calling" module (example.com/foo/yyy).
Copy link
Contributor

@hugosantos hugosantos left a comment

Choose a reason for hiding this comment

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

If this is backwards compatible LGTM

So that we can build an image out of it.
@nichtverstehen
Copy link
Contributor Author

I've tried build a few binaries in various locations including in workspace submodules and it seems that all works. 🤞

@nichtverstehen nichtverstehen added this pull request to the merge queue Sep 9, 2024
Merged via the queue into main with commit 68859ea Sep 9, 2024
19 checks passed
@nichtverstehen nichtverstehen deleted the kirill/crossmodule branch September 9, 2024 20:02
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