Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

we need option to execlude some packages #39

Open
sijms opened this issue Sep 28, 2020 · 0 comments
Open

we need option to execlude some packages #39

sijms opened this issue Sep 28, 2020 · 0 comments

Comments

@sijms
Copy link

sijms commented Sep 28, 2020

I have medium project which import small packages i made and also import: golang.org/x/text
I need to cancel golang.org/x/text from obfuscation to accelerate the operation.
after searching in the code i found that when you transfer package to $GOROOT it will not include
in the obfuscation but I receive error from function
func interfaceMethods(gopath string) (map[string]bool, error){}
cannot import golang.org/x/tools/go/ssa/ssautil

I temporary solve the problem by write continue when the program cannot import a package because actually
this package I am not using and I didn't need to obfuscate it

pkg, err := ctx.Import(pkgName, gopath, 0)
if err != nil {
continue
//return nil, fmt.Errorf("import %s: %s", pkgName, err)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant