You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-licenses check returns non-zero exit code when it cannot find a valid license so that tools/scripts can report error.
Actual behavior
Exit code 0 is returned.
$ go-licenses check github.com/daaku/go.zipexe
E0701 18:49:16.281709 29087 library.go:108] Failed to find license for github.com/daaku/go.zipexe: no file/directory matching regexp "^(LICEN(S|C)E|COPYING|README|NOTICE)(\\..+)?$" found for /Users/wlynch/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.0
$ echo$?
0
The actual cause of the missing license is because go-licenses doesn't consider casing. It sounds like #30 may fix this.
The text was updated successfully, but these errors were encountered:
Previously if an unknown license was detected, an error message was
printed, but the command would still return 0, indicating success for
many CI tools.
This fixes the behavior to return a proper non-zero error code.
Fixesgoogle#31.
Expected behavior
go-licenses check
returns non-zero exit code when it cannot find a valid license so that tools/scripts can report error.Actual behavior
Exit code 0 is returned.
The actual cause of the missing license is because go-licenses doesn't consider casing. It sounds like #30 may fix this.
The text was updated successfully, but these errors were encountered: