Skip to content

Update web-service-gin to newer way of adding modules #109

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

princefishthrower
Copy link

Hi, I was following this tutorial using Go 1.17 and saw that using go get . doesn't work to install the github.com/gin-gonic/gin module. I followed this stack overflow: https://stackoverflow.com/questions/69025385/go-1-14-to-1-17-update-modules-not-working-anymore and found that go mod tidy correctly added the module for me. Obviously open to wording, refactoring, reconsideration changes

Hi, I was following this tutorial using Go 1.17 and saw that using `go get .` doesn't work to install the github.com/gin-gonic/gin module. I followed this stack overflow: https://stackoverflow.com/questions/69025385/go-1-14-to-1-17-update-modules-not-working-anymore and found that `go mod tidy` correctly added the module for me. Obviously open to wording, refactoring, reconsideration changes
@google-cla google-cla bot added the cla: no Used by googlebot to label PRs as having an invalid CLA. The text of this label should not change. label Nov 21, 2021
@princefishthrower
Copy link
Author

Actually I may stand corrected, while go mod tidy allowed github.com/gin-gonic/gin to be imported, I still couldn't run the example. It turns out it is the latest github.com/gin-gonic/gin module that is the issue. There is an open issue with v1.7.5, so the fix (for now) is go get github.com/gin-gonic/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: no Used by googlebot to label PRs as having an invalid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant