diff --git a/shared.go b/shared.go index 2156eedc..01837c74 100644 --- a/shared.go +++ b/shared.go @@ -286,6 +286,10 @@ func appendListedPackages(packages []string, withDeps bool) error { // // TODO: investigate and resolve each one of these var cannotObfuscate = map[string]bool{ + // See https://github.com/burrowers/garble/issues/609. + // Also, how do we write a good regression test? + "syscall": true, + // "unknown pc" crashes on windows in the cgo test otherwise "runtime/cgo": true, diff --git a/testdata/script/gogarble.txtar b/testdata/script/gogarble.txtar index 5c6cd4c7..be3a7ccf 100644 --- a/testdata/script/gogarble.txtar +++ b/testdata/script/gogarble.txtar @@ -38,7 +38,8 @@ garble build std # support ImportMap when linking. # Also ensure we are obfuscating low-level std packages. garble build -o=out ./stdimporter -! binsubstr out 'http.ListenAndServe' 'debug.WriteHeapDump' 'time.Now' 'syscall.Listen' +# ! binsubstr out 'http.ListenAndServe' 'debug.WriteHeapDump' 'time.Now' 'syscall.Listen' +! binsubstr out 'http.ListenAndServe' 'debug.WriteHeapDump' 'time.Now' # The same low-level std packages appear in plain sight in regular builds. go build -o=out_regular ./stdimporter