Skip to content

Commit

Permalink
Update go-sqlite3 dependency to fix build errors on MacOS (#128)
Browse files Browse the repository at this point in the history
Trying to build on Mac, I get these errors:
```
+ go build -ldflags '-extldflags "-static" -X main.commit= -X main.version=latest' -o release/linux/amd64/drone-autoscaler github.com/drone/autoscaler/cmd/drone-autoscaler
# github.com/mattn/go-sqlite3
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:18:10: undefined: SQLiteConn
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:26:10: undefined: SQLiteConn
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:27:17: undefined: namedValue
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:29:13: undefined: namedValue
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:35:10: undefined: SQLiteConn
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:36:17: undefined: namedValue
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:44:10: undefined: SQLiteConn
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:49:10: undefined: SQLiteConn
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:54:10: undefined: SQLiteStmt
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:63:10: undefined: SQLiteStmt
../../go/pkg/mod/github.com/mattn/[email protected]/sqlite3_go18.go:36:17: too many errors
```

This go.mod update fixes it
  • Loading branch information
julienduchesne authored May 11, 2023
1 parent bd3623b commit 79082b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
github.com/joho/godotenv v1.2.0
github.com/kr/pretty v0.1.0
github.com/lib/pq v1.10.4
github.com/mattn/go-sqlite3 v1.6.0
github.com/mattn/go-sqlite3 v1.14.16
github.com/packethost/packngo v0.1.0
github.com/prometheus/client_golang v1.14.0
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,8 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk=
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/mattn/go-sqlite3 v1.6.0 h1:TDwTWbeII+88Qy55nWlof0DclgAtI4LqGujkYMzmQII=
github.com/mattn/go-sqlite3 v1.6.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/mattn/go-sqlite3 v1.14.16 h1:yOQRA0RpS5PFz/oikGwBEqvAWhWg5ufRz4ETLjwpU1Y=
github.com/mattn/go-sqlite3 v1.14.16/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg=
github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
Expand Down

0 comments on commit 79082b3

Please sign in to comment.