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/111/head
parent
81b4c49702
commit
d3af58b558
@ -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