-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add go.mod
and bump go-github dependency
#9
Comments
Thanks for reporting this - we haven't experimented much with modules yet, so I wasn't aware of these limitations. Adding the |
Unfortunately it seems that rewriting paths will cause non-module-aware clients to break. There is a long discussion here: gofrs/uuid#61 AFAIU the solution is "make a |
Ah, that's unfortunate. Let me discuss with the team to see if we're ready to commit to using modules the next time we update our dependencies on this package or if we want to try the branch approach. |
The only option would be to create a folder in the root of the repo for each major version. And then the code, or some sort of wrapper package, lives in there. Both Creating a branch won't work, since |
Due to the way Go modules mode picks up versions for dependencies that do not have
go.mod
file, importinggo-githubapp
from modules-enabled package causes Go to select ancientv17
version ofgo-github
.Here's the example conversion: https://github.com/tectonic-network/go-githubapp/commit/1b3705ccaef8a31d1f0ce66cd821a9d021eca24a — I ran
go mod init
to do so, and then manually updatedgo-github
import URLs to point tov24
.The text was updated successfully, but these errors were encountered: