Version
1.31.0
What happened?
Trying to install sqlc with go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest currently fails with the following error. Looks like this happens because 1.31.0 has a replace directive inside the go.mod file
|
replace github.com/go-sql-driver/mysql => github.com/sqlc-dev/mysql v0.0.0-20251129233104-d81e1cac6db2 |
Relevant log output
docker run --rm -it golang:latest
Unable to find image 'golang:latest' locally
latest: Pulling from library/golang
4f4fb700ef54: Pull complete
b55da06e3b41: Pull complete
48e102291f75: Pull complete
59c21dfbee0a: Pull complete
c95af6644001: Download complete
3f76e3f8de8a: Download complete
Digest: sha256:5f3787b7f902c07c7ec4f3aa91a301a3eda8133aa32661a3b3a3a86ab3a68a36
Status: Downloaded newer image for golang:latest
root@cdab46e0fd3e:/go# go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
go: downloading github.com/sqlc-dev/sqlc v1.31.0
go: github.com/sqlc-dev/sqlc/cmd/sqlc@latest (in github.com/sqlc-dev/sqlc@v1.31.0):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
root@cdab46e0fd3e:/go#
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response
Version
1.31.0
What happened?
Trying to install
sqlcwithgo install github.com/sqlc-dev/sqlc/cmd/sqlc@latestcurrently fails with the following error. Looks like this happens because 1.31.0 has a replace directive inside thego.modfilesqlc/go.mod
Line 63 in 0f82157
Relevant log output
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
No response
What type of code are you generating?
No response