Exclude sync from obfuscation

Add todo
pull/149/head
Pagran 5 years ago
parent b57243c681
commit c4df2d3464

@ -147,6 +147,8 @@ func saveListedPackages(w io.Writer, flags, patterns []string) error {
}
dec := json.NewDecoder(stdout)
listedPackages = make(map[string]*listedPackage)
// TODO: Add ImportMap support
for dec.More() {
var pkg listedPackage
if err := dec.Decode(&pkg); err != nil {
@ -703,7 +705,7 @@ func transformCompile(args []string) ([]string, error) {
return append(flags, newPaths...), nil
}
const privateBlacklist = "runtime,internal/cpu,internal/bytealg"
const privateBlacklist = "runtime,internal/cpu,internal/bytealg,sync"
// isPrivate checks if GOPRIVATE matches path.
//

Loading…
Cancel
Save