-
Notifications
You must be signed in to change notification settings - Fork 0
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
PF-3455 add staticcheck #194
Conversation
0ca9164
to
72be294
Compare
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.
This PR contains two not nice changes. Wdyt?
@@ -1,5 +1,5 @@ | |||
#!/usr/bin/env sh | |||
set -eu | |||
go mod vendor | |||
test -z "$(go env GOWORK)" && go mod vendor || go work vendor |
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 am testing go work for simplifying major upgrades. Unfortunately go mod vendor
complains and demands to use go work vendor
. I tried to make it a oneliner to keep the file small and because we would to add this everywhere.
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 didn't know about go work
until you mentioned it here.
I tried to make it a oneliner to keep the file small and because we would to add this everywhere.
Do we really? We'd only need this in projects that use go work
and not everywhere, don't we?
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.
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.
And to actually explain why I try to use go work
: When I do a breaking change, I can immediately see the impact on those other projects without need for modifying to go.mod
in each project.
So I would do a breaking change and then call my hack/buildall.sh
hack, which is basically a for loop.
Also make project compatible with
go work
, because I am trying to use it for better handling of our multi-repos.