-
Notifications
You must be signed in to change notification settings - Fork 36
Update go dependencies #2008
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
Update go dependencies #2008
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we don't have a tagged release on github.com/trussworks/pdfcpu
for our afero work, you need to run the following to tag the latest commit on the afero
branch.
go get github.com/trussworks/pdfcpu@afero
## Update a specific dependency | ||
|
||
```console | ||
$ go get -u github.com/pkg/errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to also have an example of getting the dependency @master
, which I think is the right syntax. I think a lot of our deps we want at the master version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love one more thing added to the README. But I'm not going to block. Thanks for doing this.
This PR is reverts cobra, viper, and pflag. Since we want master branch for those, so this is still blocked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. All the different apps ran fine.
@pjdufour-truss Can you take a look at this again when you have a minute? I think we're in good shape.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work. However, it looks like go.mod
is still out of sync. Could you squash and rebase from master and then roll forward from a clean go.mod
?
For example, cobra/viper/pflag should be tracking master instead are on tagged versions. Should the custom branches logic preceed the semver logic? Should we hard-code more versions in the program. Not to bloat this more, but we could have a simple requirements file that includes branch overrides.
Could you also look into using https://godoc.org/os/exec#CommandContext and maybe setting a default timeout for each package with a few retries? One of the go get commands stalled on me. |
@pjdufour-truss I didn't add any retries yet, but I did add a timeout as you suggested. If we find ourselves retrying a lot we can go ahead and put that in. |
Can we remove |
It looks like the newest version of pop changed UUID libraries. Can we confirm that's not an issue? gobuffalo/pop#348 |
It looks like we're already on
Sure thing. I'll make that change. Thanks for mentioning it. |
Description
It seems that in the switch from
dep
togo mod
a bunch of our dependencies were downgraded, probably due to howgo mod
uses the minimum version that will satisfy requirements for indirect dependencies.This PR updates most of our dependencies to the latest version.
Reviewer Notes
You can run the script to update dependencies locally like so:
$ make go_deps_update
I noticed that
go vet
sometimes altersgo.mod
. I'm not sure why.Code Review Verification Steps
References