aboutsummaryrefslogtreecommitdiff
path: root/version
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-12-09 20:50:12 +0000
committerChristine Dodrill <me@christine.website>2018-12-09 20:50:12 +0000
commit7680f8cc6d7f3435e1aa67e5b00844880ff4bfd2 (patch)
treec3133001a8b653235c84cefbc1305759b077786a /version
parentf5279a6acc1fa11e4f39a3370190974c39e27afd (diff)
downloadx-7680f8cc6d7f3435e1aa67e5b00844880ff4bfd2.tar.xz
x-7680f8cc6d7f3435e1aa67e5b00844880ff4bfd2.zip
tools.go
Diffstat (limited to 'version')
-rw-r--r--version/ko/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/version/ko/main.go b/version/ko/main.go
index 584ae4d..3b333c8 100644
--- a/version/ko/main.go
+++ b/version/ko/main.go
@@ -13,10 +13,10 @@ func main() {
ver := os.Getenv("GO_VERSION")
if ver == "" {
- log.Printf("ko: No GO_VERSION specified (wanted GO_VERSION=%[1]s) specified, assuming %[1]s", runtime.Version())
+ ver = runtime.Version()
+ } else {
+ ver = "go" + ver
}
- ver = "go" + ver
-
version.Run(ver)
}