mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Modify forked godep to have custom version
This commit is contained in:
parent
db89546591
commit
9d241ec454
2
third_party/forked/godep/godepfile.go
vendored
2
third_party/forked/godep/godepfile.go
vendored
@ -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
|
||||
|
4
third_party/forked/godep/version.go
vendored
4
third_party/forked/godep/version.go
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user