Skip to content

feat: correctly pin the go pkg in module generation - #11826

Merged
TomChv merged 10 commits into
dagger:mainfrom
TomChv:fix/correctly-pin-go-pkg-in-module
Mar 20, 2026
Merged

TomChv merged 10 commits into
dagger:mainfrom
TomChv:fix/correctly-pin-go-pkg-in-module

Conversation

@TomChv

@TomChv TomChv commented Feb 9, 2026

Copy link
Copy Markdown
Member

Update the go_sdk to send a pinned lib version to a commit from dagger-go-sdk.

⚠️ This change the release process, now we will need to update the const in go_sdk to the latest commit of dagger-go-sdk, this commit will not be the one tagged because it's done before the release.
At some point, it would be much better to release the SDKs before the engine so we can set the commit of the released instead of the one before.

@TomChv
TomChv requested a review from sipsma February 9, 2026 17:52
@TomChv TomChv changed the title feat: correctly pin the go pkg in module genera feat: correctly pin the go pkg in module generation Feb 9, 2026
@TomChv TomChv self-assigned this Feb 10, 2026
@sipsma

sipsma commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

@TomChv the errors in ci:bootstrap seem related to your change

@TomChv
TomChv force-pushed the fix/correctly-pin-go-pkg-in-module branch 2 times, most recently from 7533959 to 6768573 Compare February 11, 2026 17:28
@TomChv

TomChv commented Feb 12, 2026

Copy link
Copy Markdown
Member Author

the errors in ci:bootstrap seem related to your change

Yeah definitely, I found a fix, still digging into the other errors

@sipsma sipsma left a comment

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.

To double check everything, we should do a test "local-only" release and verify it works. So use the release module/toolchains to build a CLI + Engine that think they are actually v0.19.12 (or whatever next version is) and then do tests to make sure we can use existing modules, init new ones, call everything etc. Just to avoid a situation like last release

@TomChv
TomChv force-pushed the fix/correctly-pin-go-pkg-in-module branch from 32eb710 to a903406 Compare March 2, 2026 18:58
@TomChv

TomChv commented Mar 2, 2026

Copy link
Copy Markdown
Member Author

To double check everything, we should do a test "local-only" release and verify it works. So use the release module/toolchains to build a CLI + Engine that think they are actually v0.19.12 (or whatever next version is) and then do tests to make sure we can use existing modules, init new ones, call everything etc. Just to avoid a situation like last release

Done in a separated PR: #11941

@TomChv
TomChv force-pushed the fix/correctly-pin-go-pkg-in-module branch from a903406 to ea94624 Compare March 2, 2026 23:58
@TomChv

TomChv commented Mar 3, 2026

Copy link
Copy Markdown
Member Author

@sipsma PR rebased on top of #11941 and ready for another review :D

@TomChv
TomChv force-pushed the fix/correctly-pin-go-pkg-in-module branch 2 times, most recently from d67e379 to 667726d Compare March 12, 2026 17:19
@TomChv

TomChv commented Mar 16, 2026

Copy link
Copy Markdown
Member Author

@sipsma Ready for review :D

@TomChv
TomChv requested a review from sipsma March 17, 2026 13:41
@TomChv
TomChv force-pushed the fix/correctly-pin-go-pkg-in-module branch from 3c44b52 to 1a74317 Compare March 19, 2026 12:31
@TomChv

TomChv commented Mar 19, 2026 •

Copy link
Copy Markdown
Member Author

I rebased the PR and updated the lib version to the latest commit on dagger-go-sdk.

I'll merge once the CI is green

@TomChv
TomChv force-pushed the fix/correctly-pin-go-pkg-in-module branch from 4c889e7 to a77894c Compare March 19, 2026 20:36
@TomChv
TomChv merged commit 249a4a7 into dagger:main Mar 20, 2026
2 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.

3 participants