Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
akhenakh opened this issue Mar 31, 2023 · 3 comments

Comments

@akhenakh
Copy link

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
Copy link
Author

In the meantime for folks trying to install usql:

 go install github.com/xo/usql@v0.13.12

@kenshaw
Copy link
Member

kenshaw commented Mar 31, 2023

@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
Copy link
Member

kenshaw commented Mar 31, 2023

This is discussed here: golang/go#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.

@kenshaw kenshaw closed this as completed Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants