-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[CI:BUILD] Cirrus: Catch use of deprecated ioutils package #15893
Conversation
65882c8
to
3cad8c2
Compare
Oh yeah. Can't actually submit any PRs until #15890 merges |
4d3ecf1
to
84d6c08
Compare
Yep 😞 |
84d6c08
to
b40dffe
Compare
b40dffe
to
2df480b
Compare
contrib/cirrus/runner.sh
Outdated
regex=$(echo -e "^(\\+.+io/\x69outils)|(\\+.+\x69outils\\..+)") | ||
if egrep -q "$regex"<<<"$diffs"; then | ||
die "Found attempted use of deprecated ioutils: | ||
$(egrep -B5 -A5 "$regex"<<<"$diffs")" |
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 is imperfect, but simple. Hopefully 10-lines of context is enough for a PR author to find their problem.
2df480b
to
597d95b
Compare
616fcd4
to
3aa04bf
Compare
Okay, this is working now as intended. |
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.
LGTM
Github is "having problems". I'll retry in a bit. |
3aa04bf
to
b59cb05
Compare
I doubt that this is true. Golang has a compatibility promise and I highly doubt that they just broke that. Are you sure it is not just the linter complaining? |
Oh it could be, you're probably right. |
Can't: doesn't handle renames or removed files. (Without ugly muckery on the part of the script). Here's how to do it: git diff OLD NEW -- '*.go' :^vendor/ Why didn't I go to stackoverflow in the first place? Why did I waste time (off and on, not all day, thankfully) reading git man pages? |
While we are doing this we should also check for |
Yeah, I'm struggling with this too. StackOverflow first, then Google, then |
We probably don't care about removed files, but renames for sure. I'll try
Sure, but I would prefer to do that as a followup PR. Everybody and their uncle has trained-muscle-memory for typing |
At the time of this commit, there's no easier way to detect this using `golangci-lint` or the go tool (that I could find). A future update to the `go list` command may support detection, for now use a CI script. Signed-off-by: Chris Evich <[email protected]>
90edf52
to
69ac1e3
Compare
Force-push: Rebased + implemented Ed's suggestion. |
749b53c
to
69ac1e3
Compare
/lgtm Thanks @cevich |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, edsantiago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
Depends on containers#15893 Fixes: containers#15913 Signed-off-by: Chris Evich <[email protected]>
At the time of this commit, there's no easier way to detect this using
golangci-lint
or the go tool (that I could find).Signed-off-by: Chris Evich [email protected]
Does this PR introduce a user-facing change?