1 // Copyright (c) 2020, Daniel Martà <mvdan@mvdan.cc>
2 // See LICENSE for licensing information
13 showVersion = flag.Bool("version", false, "show version and exit")
15 version = "(devel)" // to match the default from runtime/debug
19 // don't overwrite the version if it was set by -ldflags=-X
20 if info, ok := debug.ReadBuildInfo(); ok && version == "(devel)" {
22 if mod.Replace != nil {