Skip to content

Always use the SDK's Go version in SDK compat check - #321

Merged
stpierre merged 1 commit into
temporalio:mainfrom
stpierre:fix-sdk-compat-check
Oct 12, 2026
Merged

stpierre merged 1 commit into
temporalio:mainfrom
stpierre:fix-sdk-compat-check

Conversation

@stpierre

@stpierre stpierre commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

What changed?

When setting up Go for the SDK compat check, use the Go version specified by the SDK.

Why?

The current stable go is 1.27, which writes export data version 5. But the current SDK release uses some older tooling that doesn't support export data version 5, only 4. (This has been fixed in temporalio/sdk-go#2668, but no new release has been made yet.)

This fix will avoid all future iterations of this problem by always using the SDK's go version, not just blindly grabbing stable and hoping for compatibility.

How did you test it?

https://github.com/temporalio/api-go/actions/runs/38251829937

Potential risks

The only risk is to the API release process, but it's already broken. This is unlikely to break it worse.

Going forward, in the case of a go version mismatch between API and SDK this will result in always favoring the SDK. That's not a regression; previously we just installed the latest stable, which could favor API, SDK, both, or neither. (Currently stable is 1.27, SDK uses 1.26, and API uses 1.25.) So this actually constrains that risk to a single flavor, which is an improvement.

The current stable go is 1.27, which writes export data version 5. But the current SDK release uses some older tooling that doesn't support export data version 5, only 4. (This has been fixed in temporalio/sdk-go#2668, but no new release has been made yet.)

This fix will avoid all future iterations of this problem by always using the SDK's go version, not just blindly grabbing stable and hoping for compatibility.
@stpierre
stpierre requested review from a team as code owners October 12, 2026 12:51
@stpierre
stpierre merged commit 53ba1c3 into temporalio:main Oct 12, 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