Repository navigation
fix(flake.nix): build go-migrate with only postgres driver - #26643
Merged
Merged
Conversation
Follow-up to #26584. After the nixpkgs 25.05 update, the default go-migrate package panics at startup due to its Snowflake driver before Postgres commands can run. Coder only uses the migrate CLI for migration creation and local Postgres migrations, so override the build tags to include only the Postgres driver.
geokat
marked this pull request as ready for review
June 23, 2026 21:45
geokat
enabled auto-merge (squash)
June 23, 2026 21:51
geokat
disabled auto-merge
June 23, 2026 21:52
geokat
enabled auto-merge (squash)
June 23, 2026 21:53
johnstcn
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #26584.
After the nixpkgs 25.05 update, the default go-migrate package panics at startup due to its Snowflake driver before Postgres commands can run:
The panic comes from the combination of Go 1.23+ x509 defaults and a negative-serial certificate in the Snowflake driver's embedded CA bundle. It can be avoided by setting
GODEBUG=x509negativeserial=1, but Coder only uses the migrate CLI for migration creation and local Postgres migrations.This PR overrides the build tags to include only the Postgres driver, which removes the Snowflake startup path entirely.