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

go.mod: remove golang.org/x/tools dependency #266

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 9, 2022

  1. go.mod: remove golang.org/x/tools dependency

    This removes golang.org/x/tools/cmd/stringer as a direct dependency of this
    module, instead using "go install" to install the required tool as part of
    `go generate`. I opted for pinning to a fixed version for reproducibility, but
    we could switch to `@latest` if there's no concerns for getting newer versions.
    
    With this patch:
    
        which stringer
        # (no output)
    
        go generate ./pkg/guid
        which stringer
        /Users/thajeztah/go/bin/stringer
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Nov 9, 2022
    Configuration menu
    Copy the full SHA
    3e14573 View commit details
    Browse the repository at this point in the history