Modify forked godep to have custom version

parent db895465
......@@ -173,7 +173,7 @@ func (g *Godeps) save() (int64, error) {
}
func (g *Godeps) writeTo(w io.Writer) (int64, error) {
g.GodepVersion = fmt.Sprintf("v%d", version) // godep always writes its current version.
g.GodepVersion = fmt.Sprintf("v%s", version) // godep always writes its current version.
b, err := json.MarshalIndent(g, "", "\t")
if err != nil {
return 0, err
......
......@@ -8,7 +8,7 @@ import (
"strings"
)
const version = 80
const version = "80-k8s-r1"
var cmdVersion = &Command{
Name: "version",
......@@ -21,7 +21,7 @@ Displays the version of godep as well as the target OS, architecture and go runt
}
func versionString() string {
return fmt.Sprintf("godep v%d (%s/%s/%s)", version, runtime.GOOS, runtime.GOARCH, runtime.Version())
return fmt.Sprintf("godep v%s (%s/%s/%s)", version, runtime.GOOS, runtime.GOARCH, runtime.Version())
}
func runVersion(cmd *Command, args []string) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment