Skip to content

Problem with compiling. invalid pseudo-version, fatal: git fetch-pack: expected shallow list #145

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

Closed
R0Z-Z opened this issue Aug 12, 2021 · 5 comments

Comments

@R0Z-Z
Copy link

R0Z-Z commented Aug 12, 2021

Hello,

Following error is thrown when I do make build:
GOPATH="/root/nextcloud-spreed-signaling.src/vendor:/root/nextcloud-spreed-signaling.src" /usr/bin/go get -u github.com/mailru/easyjson/...
go: go.etcd.io/[email protected]: invalid pseudo-version: git fetch --unshallow -f https://github.com/etcd-io/etcd in /root/nextcloud-spreed-signaling.src/vendor/pkg/mod/cache/vcs/8d0c8c2e7723e01b30c002ed4e74d4605a82294f251ebd67ae6afb9f55368d27: exit status 128:
fatal: git fetch-pack: expected shallow list
make: *** [vendor/bin/easyjson] Error 1

Could I be missing something? I had compiled previous version without any problem.

@fancycode
Copy link
Member

fancycode commented Aug 13, 2021

Which version of Go is this? The CI is running successfully with Go 1.13 - 1.16.

Did you try deleting your vendor folder to reset any previous downloads?

@R0Z-Z
Copy link
Author

R0Z-Z commented Aug 13, 2021

Hi Joachim,
My go version is 1.13.14 linux/amd64, your README.md file notes that go >= 1.13 would be ok. Perhaps I should bump it up?

I am not adept at intrinsics of go build system. A noob may it be.. The vendor folder you mentioned is the one that is created in the cloned git source when "make build" is executed I guess? Actually, I had started from a clean clone. Anyway, I tried to remove it, I also tried "make clean". Same thing happens. I also tried to set locale LC_ALL=C; many times it helped me compiling things but unfortunately not this time.

@fancycode
Copy link
Member

Sorry, this was a typo - CI actually does test with Go 1.13:

@R0Z-Z
Copy link
Author

R0Z-Z commented Aug 13, 2021

I bumped up my go version to 1.15.5 and tried to build a clean clone. This is a CentOS 7 host by the way. My last go update is from epel repos, namely: golang 1.15.5-1.el7

GOPATH="/root/nextcloud-spreed-signaling.src/vendor:/root/nextcloud-spreed-signaling.src" /usr/bin/go get -u github.com/mailru/easyjson/... go: github.com/google/[email protected]: reading github.com/google/uuid/go.mod at revision v1.3.0: unknown revision v1.3.0 make: *** [vendor/bin/easyjson] Error 1

It feels like it cannot download its dependecies. I suspected my IP address being blocked for some unknown reason. I tried from my good old gentoo host at home, having go version 1.16.4, it worked.

I am then leaving this as a note for those who bump their heads to similar problems.

Thank you for your time.
All the best.

@R0Z-Z R0Z-Z closed this as completed Aug 13, 2021
@R0Z-Z
Copy link
Author

R0Z-Z commented Aug 14, 2021

EDIT

I was too quick to decide this was because of my IP being blocked. I was misled because of some temporary complication. The real cause is CentOS 7's git version happens to be too old. I downloaded and compiled git from source, and temporarily changed my $PATH to '/root/bin:$PATH' to make system first find my local git binary. And this time signaling server got compiled without hassle.

Problematic CentOS 7 git package is: git.x86_64 / 1.8.3.1-23.el7_8
Also you may want to checkout this thread about Centos 7 golang/git problem.

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