1pkg/gopium

go get -u github.com/1pkg/gopium/cmd/gopium doesn't work as expected

1pkg opened this issue ยท 1 comments

1pkg commented

So what is happening: initially I vendored vscode-go as git submodule to simplify development, then i created github release for v1.0.0 which created tag internally on gopium but not on submodule ๐Ÿ˜„. Now to the problem, it seems that -u flag for go get does not only pull last tagged commit on requested module/repo but also pulls latest tag on submodules too ... and lates tag on vscode-go is 0.14.2. So git is going crazy as it can't pull v1.0.0 consistently on all dependencies so go get is failing.

go get -u github.com/1pkg/gopium/cmd/gopium
# cd /home/solidity/go/src/github.com/1pkg/gopium; git submodule update --init --recursive
fatal: remote error: upload-pack: not our ref 5cf47dad5143b9c1a7802ba744a49936ddd08f6b
fatal: the remote end hung up unexpectedly
Fetched in submodule path 'cmd/vscode/src/vscode-go', but it did not contain 5cf47dad5143b9c1a7802ba744a49936ddd08f6b. Direct fetching of that commit failed.
package github.com/1pkg/gopium/cmd/gopium: exit status 1
1pkg commented

Solve by forking go-vscode and consistent tagging.