Skip to content

The golang.org/x/mod package/dependency triggers Git "invalid version" error in v0.20.0 release. #2833

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
thisisaaronland opened this issue Jul 6, 2020 · 2 comments

Comments

@thisisaaronland
Copy link

thisisaaronland commented Jul 6, 2020

Describe the bug

The golang.org/x/mod package/dependency triggers Git "invalid version" error.

To Reproduce

Add "require gocloud.dev v0.20.0" to go.mod which yields the following error when trying to build code:

go: found gocloud.dev/blob in gocloud.dev v0.20.0
go: [email protected] requires
	cloud.google.com/[email protected] requires
	cloud.google.com/go/[email protected] requires
	golang.org/x/[email protected] requires
	golang.org/x/[email protected]: invalid version: git fetch --unshallow -f origin in /home/centos/go/pkg/mod/cache/vcs/13df7481b5cc3358460b717a6142fe8dbaae7652e5d05689849f419ffd40ac12: exit status 128:
	fatal: git fetch-pack: expected shallow list

Steps to reproduce the behavior.

Expected behavior

A clear and concise description of what you expected to happen.

Version

v0.20.0

If I downgrade to v0.19.0 the problem goes away.

Additional context

n/a

@vangent
Copy link
Contributor

vangent commented Jul 6, 2020

This looks like it might be related to golang/go#38373, can you take a look? Which OS and go and git versions are you using?

@thisisaaronland
Copy link
Author

I will check the version of Git, shortly. I am using Go 1.14.4.

@vangent vangent closed this as completed Jan 7, 2021
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