-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
smoke test:fix license header check #13956
Conversation
/retest |
Codecov Report
@@ Coverage Diff @@
## main #13956 +/- ##
==========================================
- Coverage 72.61% 72.52% -0.10%
==========================================
Files 469 469
Lines 38414 38414
==========================================
- Hits 27895 27858 -37
- Misses 8745 8777 +32
- Partials 1774 1779 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Thank you, Vimal. What are the exact commands executed when the problem manifests ? I tried to repro and it works for me before the patch:
|
@ptabor my go env is
issue i faced on the
same is faced perhaps by @willbeason The problem is that the function Problem is seen in |
It seems to work for me... but it's pretty subtle to parse output of Could you, please, check whether following construction is working for you ?
|
Yes - please filter |
i did. it works. shall i update the PR with |
a5f28b1
to
e5a9f3d
Compare
updated the PR. PTAL |
@@ -108,7 +108,7 @@ function relativePath { | |||
# go_srcs_in_module [package] | |||
# returns list of all not-generated go sources in the current (dir) module. | |||
function go_srcs_in_module { | |||
go fmt -n "$1" | grep -Eo "([^ ]*)$" | grep -vE "(\\_test.go|\\.pb\\.go|\\.pb\\.gw.go)" |
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.
Looking at: https://github-wiki-see.page/m/koalaman/shellcheck/wiki/SC2016
We need to change quotes to avoid warning:
go list -f "{{with \$c:=.}}{{range \$f:=\$c.GoFiles }}{{\$c.Dir}}/{{\$f}}{{\"\n\"}}{{end}}{{end}}" ./...
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.
thanks @ptabor , updated PR
e5a9f3d
to
12ab72a
Compare
partially fixes: #13896
This PR fixes
make test-smoke
pass forlicense_header
Fixed
function go_srcs_in_module
to return go files in the package.