You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone -b go-mod-trouble https://github.com/akavel/g-wikiCloning into 'g-wiki'...remote: Counting objects: 444, done.remote: Compressing objects: 100% (96/96), done.remote: Total 444 (delta 125), reused 165 (delta 97), pack-reused 248Receiving objects: 100% (444/444), 3.17 MiB | 578.00 KiB/s, done.Resolving deltas: 100% (215/215), done.Checking connectivity... done.Note: checking out '0178ca70cf1011109d63a0eeeb94a10af14d3ec4'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name>
$ cd g-wiki
$ go1.11beta2 run wiki.go -helpgo: finding gopkg.in/russross/blackfriday.v1 v1.5.1go: gopkg.in/russross/[email protected]: unknown revision refs/tags/v1.5.1go: error loading module requirements
$ go1.11beta2 get -v -dFetching https://gopkg.in/russross/blackfriday.v1?go-get=1Parsing meta tags from https://gopkg.in/russross/blackfriday.v1?go-get=1 (status code 200)get "gopkg.in/russross/blackfriday.v1": found meta tag get.metaImport{Prefix:"gopkg.in/russross/blackfriday.v1", VCS:"git", RepoRoot:"https://gopkg.in/russross/blackfriday.v1"} at https://gopkg.in/russross/blackfriday.v1?go-get=1go: finding gopkg.in/russross/blackfriday.v1 v1.5.1go: gopkg.in/russross/[email protected]: unknown revision refs/tags/v1.5.1go: error loading module requirements
$ go1.11beta2 get -v -d -uFetching https://gopkg.in/russross/blackfriday.v1?go-get=1Parsing meta tags from https://gopkg.in/russross/blackfriday.v1?go-get=1 (status code 200)get "gopkg.in/russross/blackfriday.v1": found meta tag get.metaImport{Prefix:"gopkg.in/russross/blackfriday.v1", VCS:"git", RepoRoot:"https://gopkg.in/russross/blackfriday.v1"} at https://gopkg.in/russross/blackfriday.v1?go-get=1go: finding gopkg.in/russross/blackfriday.v1 v1.5.1go: gopkg.in/russross/[email protected]: unknown revision refs/tags/v1.5.1go: error loading module requirements
$ cd ..
$ git clone -b v1.5.1 https://github.com/russross/blackfriday tmp1Cloning into 'tmp1'...remote: Counting objects: 2334, done.remote: Total 2334 (delta 0), reused 0 (delta 0), pack-reused 2334Receiving objects: 100% (2334/2334), 1.24 MiB | 258.00 KiB/s, done.Resolving deltas: 100% (1452/1452), done.Checking connectivity... done.Note: checking out '55d61fa8aa702f59229e6cff85793c22e580eaf5'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name>
$ git clone -b v1.5.1 https://gopkg.in/russross/blackfriday.v1 tmp2Cloning into 'tmp2'...remote: Counting objects: 2324, done.remote: Total 2324 (delta 0), reused 0 (delta 0), pack-reused 2324Receiving objects: 100% (2324/2324), 1.23 MiB | 809.00 KiB/s, done.Resolving deltas: 100% (1445/1445), done.Checking connectivity... done.Note: checking out '55d61fa8aa702f59229e6cff85793c22e580eaf5'.You are in 'detached HEAD' state. You can look around, make experimentalchanges and commit them, and you can discard any commits you make in thisstate without impacting any branches by performing another checkout.If you want to create a new branch to retain commits you create, you maydo so (now or later) by using -b with the checkout command again. Example: git checkout -b <new-branch-name>
$ egrep '^' /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/*/*grep: /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/branches: Is a directory/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config:[core]/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config: repositoryformatversion = 0/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config: filemode = true/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config: bare = true/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config:[remote "origin"]/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config: url = https://gopkg.in/russross/blackfriday.v1/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/config: fetch = +refs/heads/*:refs/remotes/origin/*/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/description:Unnamed repository; edit this file 'description' to name the repository./home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/FETCH_HEAD:55d61fa8aa702f59229e6cff85793c22e580eaf5 tag 'v1.5.1' of https://gopkg.in/russross/blackfriday.v1/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/HEAD:ref: refs/heads/mastergrep: /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/hooks: Is a directorygrep: /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/info: Is a directorygrep: /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/objects: Is a directorygrep: /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/refs: Is a directory/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/shallow:55d61fa8aa702f59229e6cff85793c22e580eaf5
$ ls ~/gopath/src/modls: cannot access '/home/akavel/gopath/src/mod': No such file or directory
$ egrep -H '^' /home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/*/refs/tags/*/home/akavel/gopath/src/CENSORED/_vendor/src/mod/cache/vcs/45d78715e8642ccca2ff133acc565d0c7ab6d4825a063604cf2849f892b4c225/refs/tags/v1.5.1:55d61fa8aa702f59229e6cff85793c22e580eaf5
$ git versiongit version 2.7.4
What did you expect to see?
The go1.11beta2 run wiki.go -help command should have successfully downloaded gopkg.in/russross/blackfriday.v1, built wiki.go and run it. Similarly, the go1.11beta2 get should have downloaded & compiled successfully. In case of failure, the error message should be more informative, currently I have no idea what failed and what workarounds I could try. Especially given that regular git seems to have no trouble working.
Notably, this worked for me OK on a Windows machine at home.
What did you see instead?
See the errors in "What did you do?" above.
edit: added a command showing contents of files in $GOPATH/src/mod/...
edit 2: added git version
The text was updated successfully, but these errors were encountered:
akavel
changed the title
modules: go1.11beta2 fails to download dependency although regular git succeeds
modules: go1.11beta2 fails to "find" dependency although regular git succeeds
Jul 24, 2018
I've just upgraded git to 2.18.0 via add-apt-repository ppa:git-core/ppa and it solved this for me, thanks! I don't run tip and not sure where the next beta will be released, so didn't want to wait.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes, with the latest beta
What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
The
go1.11beta2 run wiki.go -help
command should have successfully downloaded gopkg.in/russross/blackfriday.v1, built wiki.go and run it. Similarly, thego1.11beta2 get
should have downloaded & compiled successfully. In case of failure, the error message should be more informative, currently I have no idea what failed and what workarounds I could try. Especially given that regular git seems to have no trouble working.Notably, this worked for me OK on a Windows machine at home.
What did you see instead?
See the errors in "What did you do?" above.
edit: added a command showing contents of files in $GOPATH/src/mod/...
edit 2: added
git version
The text was updated successfully, but these errors were encountered: