xo / usql

Universal command-line interface for SQL databases
MIT License
8.82k stars 346 forks source link

go install github.com/xo/usql@latest does not work anymore because of replace in go.mod #404

Closed akhenakh closed 1 year ago

akhenakh commented 1 year ago
go install github.com/xo/usql@latest  
go: github.com/xo/usql@latest (in github.com/xo/usql@v0.14.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.
replace github.com/google/flatbuffers => github.com/google/flatbuffers v0.0.0-20230110200425-62e4d2e5b215
akhenakh commented 1 year ago

In the meantime for folks trying to install usql:

 go install github.com/xo/usql@v0.13.12
kenshaw commented 1 year ago

@akhenakh I am aware this is broken currently. The issue is that there are quite a number of drivers that use this package, which has general build conflicts from Go modules currently. I'm not aware of a way to fix this at the moment. I'd suggest, temporarily, either installing a binary release, or checking out the code via git clone and installing from the source tree.

kenshaw commented 1 year ago

This is discussed here: https://github.com/golang/go/issues/44840 -- I'm not really able to maintain soft forks of the (I think?) 5 drivers that this hits. There are a number of untenable options: move all the affected drivers into the bad group, which means they won't be available to build, as there are other drivers that no longer build out of the box, move them to a bad2 group that allows them to build, remove the drivers completely, don't try to get go install working.