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

only obfuscate literals in packages to obfuscate #428

Merged
merged 1 commit into from
Dec 6, 2021

Commits on Dec 5, 2021

  1. only obfuscate literals in packages to obfuscate

    Add a regression test in gogarble.txt,
    as that test is already set up with packages to not obfuscate.
    
    This bug manifested in the form of a build failure for GOOS=plan9
    with -literals turned on:
    
    	[...]/os/file_plan9.go:151:12: invalid operation: cannot call non-function append (variable of type bool)
    
    In this case, the "os" package is not to be obfuscated,
    but we would still obfuscate its literals as per the bug.
    
    But, since the package's identifiers were not obfuscated,
    names like "append" were not replaced as per ea2e0bd,
    meaning that the shadowing would still affect us.
    
    Fixes burrowers#417.
    mvdan committed Dec 5, 2021
    Configuration menu
    Copy the full SHA
    b560fc2 View commit details
    Browse the repository at this point in the history