You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/11/02 23:52:07 UTC
[GitHub] csantanapr closed pull request #375: added golang actions
csantanapr closed pull request #375: added golang actions
URL: https://github.com/apache/incubator-openwhisk-cli/pull/375
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/commands/action.go b/commands/action.go
index 615f56b0..4d0ad4e5 100644
--- a/commands/action.go
+++ b/commands/action.go
@@ -54,12 +54,14 @@ const (
ZIP_EXT = ".zip"
PHP_EXT = ".php"
RUBY_EXT = ".rb"
+ GO_EXT = ".go"
NODE_JS = "nodejs"
PYTHON = "python"
JAVA = "java"
SWIFT = "swift"
PHP = "php"
RUBY = "ruby"
+ GO = "go"
DEFAULT = "default"
BLACKBOX = "blackbox"
SEQUENCE = "sequence"
@@ -627,6 +629,8 @@ func getExec(args []string, params ActionFlags) (*whisk.Exec, error) {
exec.Kind = fmt.Sprintf("%s:%s", PHP, DEFAULT)
} else if ext == RUBY_EXT {
exec.Kind = fmt.Sprintf("%s:%s", RUBY, DEFAULT)
+ } else if ext == GO_EXT {
+ exec.Kind = fmt.Sprintf("%s:%s", GO, DEFAULT)
} else {
if ext == ZIP_EXT {
return nil, zipKindError()
@@ -670,6 +674,8 @@ func getKindExtension(runtime string) (extension string) {
extension = fmt.Sprintf(".%s", runtime)
case RUBY:
extension = RUBY_EXT
+ case GO:
+ extension = GO_EXT
}
return extension
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 41ebaf02..4a2176e4 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -57,10 +57,10 @@
"revisionTime": "2016-11-03T16:00:40Z"
},
{
- "checksumSHA1": "xZuhljnmBysJPta/lMyYmJdujCg=",
+ "checksumSHA1": "GiVgQkx5acnq+JZtYiuHPlhHoso=",
"path": "github.com/mattn/go-isatty",
- "revision": "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8",
- "revisionTime": "2016-08-06T12:27:52Z"
+ "revision": "3fb116b820352b7f0c281308a4d6250c22d94e27",
+ "revisionTime": "2018-08-30T10:17:45Z"
},
{
"checksumSHA1": "Li0PaRmaVBdibS/zs8myzc07L6o=",
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services