You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by mr...@apache.org on 2021/07/21 20:11:04 UTC
[openwhisk-runtime-go] branch master updated: Extend `proxy
-version` to also show the go runtime version. (#150)
This is an automated email from the ASF dual-hosted git repository.
mrutkowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-runtime-go.git
The following commit(s) were added to refs/heads/master by this push:
new 4bc4331 Extend `proxy -version` to also show the go runtime version. (#150)
4bc4331 is described below
commit 4bc4331f47eab91c6e1856595311848b79743d11
Author: falkzoll <fa...@de.ibm.com>
AuthorDate: Wed Jul 21 22:10:53 2021 +0200
Extend `proxy -version` to also show the go runtime version. (#150)
- Extend `proxy -version` to also show the go version the proxy.go was compiled with (makes it easier to check if go security updates need to be applied).
---
CHANGES.md | 1 +
main/proxy.go | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/CHANGES.md b/CHANGES.md
index 6d83c4d..8356b69 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -20,6 +20,7 @@
# 1.17.1
- support for zipping and unzipping symbolic links (required to support virtualenvs)
- go 1.15 runtime upgraded to 1.15.13
+- extend `proxy -version` to also show the go version the proxy.go was compiled with (makes it easier to check if go security updates need to be applied)
# 1.17.0
- go 1.15 runtime upgraded to 1.15.7
diff --git a/main/proxy.go b/main/proxy.go
index 7f4b6bc..1b33ad6 100644
--- a/main/proxy.go
+++ b/main/proxy.go
@@ -21,6 +21,7 @@ import (
"fmt"
"log"
"os"
+ "runtime"
"github.com/apache/openwhisk-runtime-go/openwhisk"
)
@@ -49,7 +50,7 @@ func main() {
// show version number
if *version {
- fmt.Printf("OpenWhisk ActionLoop Proxy v%s\n", openwhisk.Version)
+ fmt.Printf("OpenWhisk ActionLoop Proxy v%s, built with %s\n", openwhisk.Version, runtime.Version())
return
}