You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2018/03/12 20:23:35 UTC

[incubator-openwhisk-runtime-swift] branch master updated: update swift41 snapshot build to 2018-03-11-a (#33)

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

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-runtime-swift.git


The following commit(s) were added to refs/heads/master by this push:
     new ce551a0  update swift41 snapshot build to 2018-03-11-a (#33)
ce551a0 is described below

commit ce551a04d5b19b308cde88c17f9dbf715470dfbd
Author: Carlos Santana <cs...@gmail.com>
AuthorDate: Mon Mar 12 16:23:33 2018 -0400

    update swift41 snapshot build to 2018-03-11-a (#33)
---
 ansible/environments/local/group_vars/all | 2 ++
 core/swift40Action/epilogue.swift         | 4 ++--
 core/swift41Action/CHANGELOG.md           | 6 ++++++
 core/swift41Action/Dockerfile             | 2 +-
 4 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/ansible/environments/local/group_vars/all b/ansible/environments/local/group_vars/all
index 1dfc339..f11e4e0 100755
--- a/ansible/environments/local/group_vars/all
+++ b/ansible/environments/local/group_vars/all
@@ -60,3 +60,5 @@ runtimes_manifest:
 
   blackboxes:
     - name: "dockerskeleton"
+
+controller_protocol: "http"
diff --git a/core/swift40Action/epilogue.swift b/core/swift40Action/epilogue.swift
index 9d768af..e18b5c8 100644
--- a/core/swift40Action/epilogue.swift
+++ b/core/swift40Action/epilogue.swift
@@ -55,7 +55,7 @@ func _run_main(mainFunction: ([String: Any]) -> [String: Any]) -> Void {
 }
 
 // Codable main signature input Codable
-func _run_main<In: Codable, Out: Codable>(mainFunction: @escaping (In, (Out?, Error?) -> Void) -> Void) {
+func _run_main<In: Decodable, Out: Encodable>(mainFunction: @escaping (In, (Out?, Error?) -> Void) -> Void) {
     do {
         let input = try Whisk.jsonDecoder.decode(In.self, from: json)
         let resultHandler = { (out: Out?, error: Error?) in
@@ -90,7 +90,7 @@ func _run_main<In: Codable, Out: Codable>(mainFunction: @escaping (In, (Out?, Er
 }
 
 // Codable main signature no input
-func _run_main<Out: Codable>(mainFunction: @escaping ((Out?, Error?) -> Void) -> Void) {
+func _run_main<Out: Encodable>(mainFunction: @escaping ((Out?, Error?) -> Void) -> Void) {
     let resultHandler = { (out: Out?, error: Error?) in
         if let error = error {
             _whisk_print_error(message: "Action handler callback returned an error:", error: error)
diff --git a/core/swift41Action/CHANGELOG.md b/core/swift41Action/CHANGELOG.md
index 3c409ef..55a9b75 100644
--- a/core/swift41Action/CHANGELOG.md
+++ b/core/swift41Action/CHANGELOG.md
@@ -1,5 +1,11 @@
 # Apache OpenWhisk Swift 4.1 Runtime Container
 
+## 1.0.1
+Changes:
+  - update swift41 snapshot build to `2018-03-11-a`
+
+Swift runtime version: [swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-11-a](https://swift.org/builds/swift-4.1-branch/ubuntu1404/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-11-a/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-11-a-ubuntu14.04.tar.gz)
+
 ## 1.0.0
 Changes:
   - Add Codable support
diff --git a/core/swift41Action/Dockerfile b/core/swift41Action/Dockerfile
index 260b8d9..fa64fbb 100644
--- a/core/swift41Action/Dockerfile
+++ b/core/swift41Action/Dockerfile
@@ -5,7 +5,7 @@ LABEL Description="Linux Ubuntu 14.04 image with the Swift binaries and tools."
 USER root
 
 # Set environment variables for image
-ENV SWIFT_SNAPSHOT swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-06-a
+ENV SWIFT_SNAPSHOT swift-4.1-DEVELOPMENT-SNAPSHOT-2018-03-11-a
 ENV SWIFT_SNAPSHOT_LOWERCASE swift-4.1-branch
 ENV UBUNTU_VERSION ubuntu14.04
 ENV UBUNTU_VERSION_NO_DOTS ubuntu1404

-- 
To stop receiving notification emails like this one, please contact
csantanapr@apache.org.