-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/gopls: Cannot install 0.3.1 with go get #37140
Comments
Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here. |
You're on Fedora, I presume, which disables |
If your goal is to install gopls at the newest tagged version, then instead of:
You should run:
Notably, don't include the See canonical gopls installation instructions here. If you got the command you ran from some documentation, please let us know where it was so we can update it. |
Ah, yes, I *do* have the goproxy disabled by default as I work with a lot of modules still being pulled in via git+ssh
… On Feb 8, 2020, at 2:56 PM, Dmitri Shuralyov ***@***.***> wrote:
If your goal is to install gopls at the newest tagged version, then instead of:
go get -u ***@***.***/v0.3.1
You should run:
go get ***@***.***
Notably, don't include the -u flag. You can also drop the "gopls/" prefix before the version (both work, but it's shorter not to include it).
See canonical gopls installation instructions here.
If you got the command you ran from some documentation, please let us know where it was so we can update it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I think the real issue here was the use of the |
@stamblerre I tried both and they both failed with the same error |
Did any of @heschik's suggestions above resolve the issue (#37140 (comment))? |
Closing this issue due to lack of activity. @paulbdavis: If you're still having this problem, please reopen. |
Sorry for the inactivity, got busy and my github notifications fell behind. Anyway, I had this issue again trying to update to I'm guessing since this is not the default behavior this issue is not worth actually reopening? |
@paulbdavis It would be helpful if you’re able to share the exact command you ran, the exact output your got, and relevant parts of your .gitconfig file. There may be a problem in the go command that needs to be fixed, but we can’t tell without more information. I also think you should be able to use private modules without having to resort to hacks, so if that’s not the case, it’s worth opening a separate issue about that and explain why it’s needed. See the second paragraph of https://golang.org/doc/go1.14#introduction. Thanks. |
Sorry, I'm confused. To me this is very clearly a duplicate of #34092. Possibly that fix should be/have been backported to 1.13, but other than that, what is there still to diagnose here? |
The latest message just said "had this issue again". If it is exactly the same issue as in the original report, then there's nothing new to diagnose, but I couldn't be sure because there wasn't enough information to confirm that. |
@dmitshur The issue was essentially the same, just the specific psuedo versions were for whatever was in the go.mod at the time. I'll try to remember to get a full output tomorrow. |
What did you do?
go get -u golang.org/x/tools/gopls@gopls/v0.3.1
What did you expect to see?
Expected gopls to be installed at the newest tagged version
What did you see instead?
Seeing this is odd since that revision does seem to exist as the commit just before the tag
Cloning the repo and checking out the tag and building worked fine.
Build info
Go info
The text was updated successfully, but these errors were encountered: