env GOPRIVATE=match-absolutely/nothing ! garble build -o=out ./standalone stderr '^GOPRIVATE="match-absolutely/nothing" does not match any packages to be built$' env GOPRIVATE=test/main/imported ! garble build ./importer stderr '^public package "test/main/importer" can''t depend on obfuscated package "test/main/imported" \(matched via GOPRIVATE="test/main/imported"\)$' [short] stop # Try garbling all of std. # This used to fail since the "net" import causes 'go list -json' to output # ImportMap, since "net" imports packages vendored in std. env GOPRIVATE='*' garble build -o=out ./standalone -- go.mod -- module test/main go 1.15 -- standalone/main.go -- package main // TODO: This tests that #146 is fixed, but is blocked by errors garbling 'net' //import _ "net" func main() {} -- importer/importer.go -- package importer import "test/main/imported" var _ = imported.Name -- imported/imported.go -- package imported var Name = "value"