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

Add support for go modules. #24

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

Commits on Apr 25, 2019

  1. Add support for go modules.

    - create go.sum
    - do not use .. in filenames in this repo due to golang/go#27299
    
    Testing strategy: I almost successfully ran `test_all.sh` and found a
    data race, but I don't think it's related to this PR:
    
    ```
    WARNING: DATA RACE
    Read at 0x00c00016cac0 by goroutine 29:
      github.com/spf13/pflag.(*FlagSet).VisitAll()
          /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:277 +0x14a
      github.com/mwitkow/go-flagz.ChecksumFlagSet()
          /home/stefan/Projects/go-flagz/checksum.go:15 +0xc8
      github.com/mwitkow/go-flagz/monitoring.(*flagSetCollector).Collect()
          /home/stefan/Projects/go-flagz/monitoring/collector.go:57 +0x2a2
      github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
          /home/stefan/usr/go/main/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:434 +0x1eb
    
    Previous write at 0x00c00016cac0 by goroutine 28:
      github.com/spf13/pflag.sortFlags()
          /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:204 +0x2f2
      github.com/spf13/pflag.(*FlagSet).VisitAll()
          /home/stefan/usr/go/main/pkg/mod/github.com/spf13/[email protected]/flag.go:270 +0x1b0
      github.com/mwitkow/go-flagz.ChecksumFlagSet()
          /home/stefan/Projects/go-flagz/checksum.go:15 +0xc8
      github.com/mwitkow/go-flagz/monitoring.(*flagSetCollector).Collect()
          /home/stefan/Projects/go-flagz/monitoring/collector.go:55 +0xe9
      github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
          /home/stefan/usr/go/main/pkg/mod/github.com/prometheus/[email protected]/prometheus/registry.go:434 +0x1eb
    ```
    stefan-improbable committed Apr 25, 2019
    Configuration menu
    Copy the full SHA
    4055686 View commit details
    Browse the repository at this point in the history