-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Remove configdir from Gopkg.toml #1211
Conversation
isn't the whole point of the circleci's |
Codecov Report
@@ Coverage Diff @@
## master #1211 +/- ##
==========================================
+ Coverage 73.63% 73.65% +0.01%
==========================================
Files 147 147
Lines 10640 10640
==========================================
+ Hits 7835 7837 +2
+ Misses 2345 2344 -1
+ Partials 460 459 -1
Continue to review full report at Codecov.
|
It's just a warning, not an error. I copied the message as it will explain better than me:
|
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.
Yeah, it's strange that this wasn't caught by the CI 😕 In any case, the PR LGTM, and I'm not sure it's worth spending a lot of time on this, given that we'd migrate to Go modules soon... Though that's also a problem there: golang/go#27348
There's apparently a Unfortunately, it doesn't cover this particular problem, but it covers quite a lot of other ones, so it's worth having, even for a short while |
Done. |
7273e30 here is a way to ensure (pun intended) that we see warnings |
We can do it, but just need to decide whether it's worth. Since there's no PR from you yet, I will add my comments here:
|
You can cherry-pick it or just make a new commit, I will need to make another branch just to make a PR(as the one shown has a commit to fix the problem you are fixing here) and than have a PR on which we all need to code review ... I think that will be a lot of time wasted. Also |
So we decide to make CI fails in case |
We might want to set pipefail as otherwise my solution won't fail if |
Actually looking at |
@mstoykov You can simply do:
|
I have 2 problems with this:
|
Ah, yeah, completely missed that... 😪 ☕ So... 👍 for @mstoykov's solution with a |
We don't want (don't need) to see dep ensure output, the one who make the PR should run in his/her local to check the output, CI testing is for verification only.
I don't see why we need set -o pipefail. The It's not the pipe which reports error. |
FYI:
|
$ case $(false 2>&1 | head -n 1) in Warning*) false ;; esac || echo 'dep ensure fail' edit: this shows that if |
To be clear,
Can you complete the comment? |
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
Usages of
configdir
library were removed in #1162, but we forget to remove it from Gopkg.toml.This PR removes its entry from Gopkg.toml, now
dep ensure
run without warnings.