xo / usql

Universal command-line interface for SQL databases
MIT License
8.92k stars 351 forks source link

go mod has error #389

Closed hantmac closed 1 year ago

hantmac commented 1 year ago

I fork the code and execute go get ./... but got an error:

github.com/IBM/nzgo/v14: cannot find module providing package github.com/IBM/nzgo/v14

And I can not find the module github.com/IBM/nzgo/v14 in project github.com/IBM/nzgo but I found github.com/IBM/nzgo/v12 instead.

kenshaw commented 1 year ago

I believe this is due to using an older version of Go. Closing this issue, as I have no issues with v14 of the driver.

hantmac commented 1 year ago

I believe this is due to using an older version of Go. Closing this issue, as I have no issues with v14 of the driver.

But I have not found the v14 driver in this repo.

image
hantmac commented 1 year ago

@kenshaw The newest version of it is v12. Where is the 'v14' module?

nineinchnick commented 1 year ago

Maybe the maintainers have published it by mistake and deleted it but it got cached? BTW the docs page still shows both v12 and v14.

nineinchnick commented 1 year ago

Also these work:

% go list -m --versions github.com/IBM/nzgo/v14
github.com/IBM/nzgo/v14 v14.0.0
% go list -m --versions github.com/IBM/nzgo/v12
github.com/IBM/nzgo/v12 v12.0.1 v12.0.3 v12.0.5 v12.0.6 v12.0.7 v12.0.8
hantmac commented 1 year ago

It got cached. I clone the code and can not found the module.

❯ go get ./...
go: github.com/IBM/nzgo/v14@v14.0.0: reading https://goproxy.io/github.com/%21i%21b%21m/nzgo/v14/@v/v14.0.0.mod: 404 Not Found
        server response: not found: github.com/IBM/nzgo/v14@v14.0.0: invalid version: unknown revision v14.0.0
❯ go list -m --versions github.com/IBM/nzgo/v14
go: github.com/IBM/nzgo/v14@v14.0.0: reading https://goproxy.io/github.com/%21i%21b%21m/nzgo/v14/@v/v14.0.0.info: 404 Not Found
        server response: not found: github.com/IBM/nzgo/v14@v14.0.0: invalid version: unknown revision v14.0.0
hantmac commented 1 year ago

Maybe the maintainers have published it by mistake and deleted it but it got cached? BTW the docs page still shows both v12 and v14.

@nineinchnick The v14 and v121 shown in the docs page might have problems and can't be used.

kenshaw commented 1 year ago

Honestly, if they can't tag things properly, I'm happy to just move it to the bad drivers and be done with it. @hantmac you might want to file a ticket on their page to let them know that they can retract versions by publishing proper go.mod files.

hantmac commented 1 year ago

@kenshaw I have opened an issue but I found the repo is not so active. Maybe we should use v12 instead 🤔.

kenshaw commented 1 year ago

@hantmac if it's unmaintained, then it should definitely not be used in usql if it doesn't work "out of the box".

hantmac commented 1 year ago

@hantmac if it's unmaintained, then it should definitely not be used in usql if it doesn't work "out of the box".

Make sense.

hantmac commented 1 year ago

This issue has not been fixed, how about reopening it?