cmd/go: unable to "go get" repository with external LFS server (go modules) #39720
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have a repository that use Git LFS, with a external LFS server configured via a
.lfsconfig
file in the root of the repository (docs).When I attempt to
go get
a package in this repo in "module-aware mode", it fails with the following error:As far as I can tell, the problem seems to be due to the way that
go get
clones the git repository.git init --bare
git remote add origin github.com/campbellr/goproject
git fetch
git archive
thepackage/
directorySince
git archive
is running in a bare repository, there is no.lfsconfig
, sogit-lfs
doesn't fetch the objects from the right lfs server and gets a 404.Note that the same
go get
will succeed inGOPATH
mode (since it just does a normalgit clone
)The text was updated successfully, but these errors were encountered: