-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
cmd/go: go get -u for package with submodule vendor: package <VENDOR PACKAGE>: <GIT DIR> exists but is not a directory #17522
Comments
@rsc since you just fixed the other half of this |
Just ran into this. Is there a workaround, since it looks like 1.8 was released w/o a fix? |
@akerl, Ended up getting around this for one of my repositories that stopped working on upgrading to 1.8 by using git submodules to vendor dependencies and avoiding |
CL https://golang.org/cl/49391 mentions this issue. |
I'm seeing something very similar too - not sure I quite understand:
note it works fine without -u:
istio.io/fortio maps to github.com/istio/fortio ps: same with go 1.10rc2:
|
after fixing the vanity url to add something for vendor (which shouldn't be needed... imo):
I now get
|
To avoid package istio.io/fortio/vendor/golang.org/x/net/context: istio.io/fortio is a custom import path for https://github.com/istio/fortio, but /go/src/istio.io/fortio/vendor is checked out from https://github.com/istio-releases/fortio-vendor.git But then one gets golang/go#17522 (comment)
and with 1.10rc2, different error:
|
I tried adding a branch to my submodule but exact same error
|
To avoid package istio.io/fortio/vendor/golang.org/x/net/context: istio.io/fortio is a custom import path for https://github.com/istio/fortio, but /go/src/istio.io/fortio/vendor is checked out from https://github.com/istio-releases/fortio-vendor.git But then one gets golang/go#17522 (comment)
cc @bradfitz any chance this can be fixed before 1.10 goes final, or at least in 1.11 ? |
@ldemailly, it's way too late for Go 1.10. Go 1.10 froze over 3 months ago. It's marked for Go 1.11, but it was also marked for Go 1.8, so.... we'll see. |
Hi all, this issue seems to be stalled. But let me add a comment. On the cyclonedx-go, I created an issue about using a On this particular context, my goal was to propose that the CycloneDX project create git submodules to fetch the content of the
I though it was a good idea that prevent from copying / duplicating content from one repo to another. However, I was unaware that And I find no satifactory workarrounds, like using I have the feeling adding such support for git submodules would not break current Go features and should not be that complicated because it is already supported by Git... But I don't have the big picture. |
Greetings, this functionality is critical for projects/modules I am working on but have yet to publish. The crux of it is that I need to include a submodule pointing to a Git tag of an upstream C++ toolkit's repository that contains the header files that will be required for downstream developers using the module I am cultivating in order to build their application(s). Using a submodule in my projects/modules is preferred to manage this structure since there are thousands of upstream header files that change between releases and checking out a version tag significantly reduces the future maintenance burden. I believe that this file/directory structure is not quite supported by vendoring but I would love to be corrected. My two cents: Would a proposal like this be accepted if a pull request were opened? |
On paper, I like your idea @rcalixte: using either go get -R github|lab.com/<project_organisation>/<project_name> But where would this modification propagate in the go CLI/API ? I think How should I assumed (but I do not know) that Same remark for I do not think that Should Should we not use In any case, I am probably missing some implications, and I am not capable of implementing this feature. But for my use case of XSD/JSON schemas, it would be awesome and cleaner that duplicating files. |
Given the new module system, I don't think this issue is relevant anymore. |
@seankhliao hey, I do not know what is the "new module system". Can you share a link? |
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only. For questions please refer to https://github.com/golang/go/wiki/Questions |
@seankhliao thank you for taking the time to share the link about where I am suppose to ask questions. I apology for trying to understand the comment that closed the issue. If I go to the question repository and ask "what is the new golang module system that was the reason this particular issue is closed", this feels unnessary. But I will comply. Good day and sorry for inconvenience. |
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
What did you expect to see?
What did you see instead?
No problem with 9a97c3b patch it self, but not completely. In
src/cmd/go/get.go
go/src/cmd/go/get.go
Lines 419 to 423 in 9a97c3b
Should it must to be a directory for
meta
?The text was updated successfully, but these errors were encountered: