Skip to content
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: add/provide resources to a comprehensive go modules guide #30783

Closed
rhugga opened this issue Mar 12, 2019 · 4 comments
Closed

cmd/go: add/provide resources to a comprehensive go modules guide #30783

rhugga opened this issue Mar 12, 2019 · 4 comments
Labels
Documentation FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@rhugga
Copy link

rhugga commented Mar 12, 2019

Pulling my effing hair out trying to sort thru the nightmare go dependencies are.

After we finally got our package working with dep.. we now have to move to go modules because dep ensure was an absolute nightmare in our CI/CD system with all the kubernetes packages.

I can't find a single example or document or blog that isn't just some simple helloworld example regurgitated from the go modules documentation.

Is there a doc or example of doing this with a complex directory structure with many go packages at varying depths?

@ALTree
Copy link
Member

ALTree commented Mar 12, 2019

Hi.

Somewhat related: #28215 (website: Update "How to Write Go Code" with go modules). It's targeted Go1.13, since it's when modules will be on by default.

Since it's possible that something like what you're requesting here could be written as part of a doc fix for that issue, you could also give your feedback (i.e. vocalize your request for a more detailed, real-world example of modules use) in that thread.

@mvdan
Copy link
Member

mvdan commented Mar 12, 2019

Not some simple single directory helloworld joke?

Pulling my effing hair out trying to sort thru the nightmare go dependencies are.

If you'd like better examples and documentation, I don't think calling the current ones a joke is the way forward. Software can be frustrating, but your issues aren't going to be productive if they read like rants.

Having said that, there are plenty of real-world examples out there to look at, such as:

https://github.com/gohugoio/hugo
https://github.com/golang/tools
https://github.com/etcd-io/etcd
https://github.com/prometheus/prometheus
https://github.com/junegunn/fzf

@agnivade
Copy link
Contributor

agnivade commented Mar 13, 2019

Does that above examples give you what you need ?

Regarding documentation, the modules wiki is a pretty comprehensive and up-to-date doc. If you have any specific suggestions, please redirect them to #28215 or feel free to update the wiki itself.

@agnivade agnivade added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Mar 13, 2019
@odeke-em odeke-em changed the title Anyone have an example of go modules with an actual application? Not some simple single directory helloworld joke? cmd/go: add/provide resources to a comprehensive go modules guide Apr 6, 2019
@odeke-em
Copy link
Member

odeke-em commented Apr 6, 2019

Hello @rhugga, hope that @mvdan and @agnivade's references were able to get you using go modules alright.
Thank you @mvdan and @agnivade for those guides and for your patience.

@rhugga given that this issue has had prescriptive responses and references, I shall close it.

@odeke-em odeke-em closed this as completed Apr 6, 2019
@andybons andybons modified the milestones: Go1.13, Go1.14 Jul 8, 2019
@golang golang locked and limited conversation to collaborators Jul 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation FrozenDueToAge modules WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

7 participants