neilotoole / sq

sq data wrangler
https://sq.io
MIT License
2.09k stars 33 forks source link

Install via `go install` breaks on sqlite libs #439

Closed ikarius closed 6 days ago

ikarius commented 3 weeks ago

Describe the bug Installing via go install github.com/neilotoole/sq@latest does not work.

To Reproduce go installgo install github.com/neilotoole/sq@latest or go install github.com/neilotoole/sq@v0.48.3`

Expected behavior

Complete install without errors

sq version

Paste the output of sq version --yaml into the code block below:

irrelevant : can't install version

Source details

-

Logs

...
go: downloading github.com/moby/term v0.5.0
go: downloading github.com/acarl005/stripansi v0.0.0-20180116102854-5a71ef0e047d
go: downloading github.com/neilotoole/fifomu v0.1.1
go: downloading github.com/google/pprof v0.0.0-20240227163752-401108e1b7e7
go: downloading github.com/richardlehane/msoleps v1.0.3
go: downloading github.com/segmentio/asm v1.2.0
# github.com/neilotoole/sq/drivers/sqlite3
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/grip.go:28:12: undefined: driveri
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/grip.go:62:9: undefined: getTableMetadata
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/grip.go:87:84: undefined: dbDrvr
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/grip.go:89:14: undefined: PathFromLocation
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/alter.go:18:10: undefined: driveri
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/alter.go:25:10: undefined: driveri
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/alter.go:32:10: undefined: driveri
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/alter.go:33:64: undefined: DBTypeForKind
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/alter.go:52:10: undefined: driveri
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/alter.go:92:15: undefined: DBTypeForKind
go/pkg/mod/github.com/neilotoole/sq@v0.48.3/drivers/sqlite3/grip.go:89:14: too many errors

Screenshots

-

Additional context

-

ikarius commented 3 weeks ago

Same when trying building from sources. But fixed after a go mod tidy

ikarius commented 6 days ago

Not able to reproduce