Skip to content

Remove go.mod replace directive that breaks 'go install ...@latest'#4401

Merged
kyleconroy merged 2 commits intomainfrom
claude/test-github-actions-4397-UihEx
Apr 21, 2026
Merged

Remove go.mod replace directive that breaks 'go install ...@latest'#4401
kyleconroy merged 2 commits intomainfrom
claude/test-github-actions-4397-UihEx

Conversation

@kyleconroy
Copy link
Copy Markdown
Collaborator

The replace directive pointing to the sqlc-dev/mysql fork was only
needed by TestExpandMySQL, but it broke the install path documented
at https://docs.sqlc.dev/en/latest/overview/install.html. Fixes #4397.

Rewrite MySQLColumnGetter in internal/x/expander/expander_test.go to
read column names from sql.Rows (the test tables are empty, so no rows
are transferred), then drop the replace directive from go.mod.

Add TestGoModHasNoReplaceDirectives and a dedicated CI job so the same
regression surfaces as a quick, obvious failure rather than silently
shipping in a release.

claude added 2 commits April 21, 2026 15:53
The replace directive pointing to the sqlc-dev/mysql fork was only
needed by TestExpandMySQL, but it broke the install path documented
at https://docs.sqlc.dev/en/latest/overview/install.html. Fixes #4397.

Rewrite MySQLColumnGetter in internal/x/expander/expander_test.go to
read column names from sql.Rows (the test tables are empty, so no rows
are transferred), then drop the replace directive from go.mod.

Add TestGoModHasNoReplaceDirectives and a dedicated CI job so the same
regression surfaces as a quick, obvious failure rather than silently
shipping in a release.
TestGoModHasNoReplaceDirectives already runs as part of the existing
test job, so no separate CI job is needed to catch regressions of #4397.
@kyleconroy kyleconroy merged commit 428d4e6 into main Apr 21, 2026
13 checks passed
@kyleconroy kyleconroy deleted the claude/test-github-actions-4397-UihEx branch April 21, 2026 17:14
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.

go run fails because of replace directive

2 participants