diff --git a/Godeps b/Godeps index b6ceee7..4fd5d33 100644 --- a/Godeps +++ b/Godeps @@ -13,7 +13,7 @@ }, { "ImportPath": "github.com/ddollar/dist", - "Rev": "76def9a8e494870ec6dbc66c5d3f0cfc4248109b" + "Rev": "95b3220dbc9bb70c4cbda93b4064655a1ff86a06" }, { "ImportPath": "github.com/inconshreveable/go-execpath", diff --git a/update.go b/update.go index 9a4fad3..4c85a0b 100644 --- a/update.go +++ b/update.go @@ -27,14 +27,14 @@ func runUpdate(cmd *Command, args []string) { fmt.Println("ERROR: can't update dev version") return } - d := dist.NewDist("ddollar/forego") + d := dist.NewDist("ddollar/forego", Version) var err error var to string if len(args) > 0 { - err = d.UpdateTo(Version, args[0]) + err = d.UpdateTo(args[0]) to = args[0] } else { - to, err = d.Update(Version) + to, err = d.Update() } if err != nil { fmt.Printf("ERROR: %s\n", err)