complain when GOPRIVATE matches no packages
This is important, because it would mean that we would obfuscate nothing. At best, it would be confusing; at worst, it could mislead the user into thinking the binary is obfuscated. Fixes #20. Updates #108.pull/109/head
parent
0d72fa229d
commit
00b1c19a6f
@ -0,0 +1,16 @@
|
||||
env GOPRIVATE=match-absolutely/nothing
|
||||
! garble build -o bin ./standalone
|
||||
stderr 'does not match any packages'
|
||||
|
||||
[short] stop
|
||||
|
||||
# TODO: https://github.com/mvdan/garble/issues/108
|
||||
# env GOPRIVATE='*'
|
||||
# garble build -o bin ./standalone
|
||||
|
||||
-- go.mod --
|
||||
module test/main
|
||||
-- standalone/main.go --
|
||||
package main
|
||||
|
||||
func main() {}
|
Loading…
Reference in New Issue