You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by dg...@apache.org on 2022/02/11 14:28:07 UTC

[openwhisk-runtime-go] branch master updated: Golang compilescript will now work with python 3 aswell as continue to work with Python 2 (#160)

This is an automated email from the ASF dual-hosted git repository.

dgrove 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 9a707cc  Golang compilescript will now work with python 3 aswell as continue to work with Python 2 (#160)
9a707cc is described below

commit 9a707cc39bc457169b0594801b9f9affacc29fea
Author: Luke-Roy-IBM <83...@users.noreply.github.com>
AuthorDate: Fri Feb 11 15:27:59 2022 +0100

    Golang compilescript will now work with python 3 aswell as continue to work with Python 2 (#160)
---
 golang1.17/bin/compile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/golang1.17/bin/compile b/golang1.17/bin/compile
index 9b1217f..c3f7ebe 100755
--- a/golang1.17/bin/compile
+++ b/golang1.17/bin/compile
@@ -72,7 +72,7 @@ def build(source_dir, target_dir):
     parent = dirname(source_dir)
     target = os.path.abspath("%s/exec" % target_dir)
     if os.environ.get("__OW_EXECUTION_ENV"):
-      write_file("%s.env" % target, os.environ["__OW_EXECUTION_ENV"])
+      write_file("%s.env" % target, str.encode(os.environ["__OW_EXECUTION_ENV"]))
 
     env = {
       "GOROOT": "/usr/local/go",