Skip to content

Commit c6aec9d

Browse files
committed
fix golang actions and readme
1 parent b716bd9 commit c6aec9d

File tree

7 files changed

+13
-7
lines changed

7 files changed

+13
-7
lines changed

event-function/fc-event-golang1.x/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Type: Application
22
Name: start-fc-event-golang1.x
3-
Version: 0.0.1
3+
Version: 0.0.2
44
Provider:
55
- 阿里云
66
Description: 快速部署一个 golang1.x 的 Event 类型的 Hello World 函数到阿里云函数计算。
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module main
2+
3+
require github.com/aliyun/fc-runtime-go-sdk v0.0.3 // indirect

event-function/fc-event-golang1.x/src/s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ services:
2626
actions: # 自定义执行逻辑
2727
pre-deploy: # 在deploy之前运行
2828
- run: GO111MODULE=on go get github.com/aliyun/fc-runtime-go-sdk
29-
path: ./
29+
path: ./code
3030
- run: GOOS=linux CGO_ENABLED=0 go build -o target/main main.go # 要运行的命令行
3131
path: ./code # 命令行运行的路径
3232
# post-deploy: # 在deploy之后运行

http-function/fc-http-golang1.x/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Type: Application
22
Name: start-fc-http-golang1.x
3-
Version: 0.0.1
3+
Version: 0.0.2
44
Provider:
55
- 阿里云
66
Description: 快速部署一个 golang1.x 的 HTTP 类型的 Hello World 函数到阿里云函数计算。
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module main
2+
3+
require github.com/aliyun/fc-runtime-go-sdk v0.0.3 // indirect

http-function/fc-http-golang1.x/src/s.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ services:
2626
actions: # 自定义执行逻辑
2727
pre-deploy: # 在deploy之前运行
2828
- run: GO111MODULE=on go get github.com/aliyun/fc-runtime-go-sdk
29-
path: ./
30-
- run: GOOS=linux CGO_ENABLED=0 go build -o target/main main.go # 要运行的命令行
29+
path: ./code
30+
- run: GO111MODULE=on GOOS=linux CGO_ENABLED=0 go build -o target/main main.go # 要运行的命令行
3131
path: ./code # 命令行运行的路径
3232
# post-deploy: # 在deploy之后运行
3333
# - run: s versions # 要运行的命令行

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- [fc-event-python2.7](event-function/fc-event-python2.7/src):`s init start-fc-event-python2`
2222
- [fc-event-python3.6](event-function/fc-event-python3.6/src):`s init start-fc-event-python3`
2323
- [fc-event-java8](event-function/fc-event-java8/src):`s init start-fc-event-java8`
24-
- [fc-event-golang1.x](event-function/fc-event-java8/src):`s init start-fc-event-golang1.x`
24+
- [fc-event-golang1.x](event-function/fc-event-golang1.x/src):`s init start-fc-event-golang1.x`
2525
- HTTP函数
2626
- [fc-http-node.js6](http-function/fc-http-node.js6/src):`s init start-fc-http-nodejs6`
2727
- [fc-http-node.js8](http-function/fc-http-node.js8/src):`s init start-fc-http-nodejs8`
@@ -31,7 +31,7 @@
3131
- [fc-http-python2.7](http-function/fc-http-python2.7/src):`s init start-fc-http-python2`
3232
- [fc-http-python3.6](http-function/fc-http-python3.6/src):`s init start-fc-http-python3`
3333
- [fc-http-java8](http-function/fc-http-java8/src):`s init start-fc-http-java8`
34-
- [fc-http-golang1.x](http-function/fc-http-java8/src):`s init start-fc-http-golang1.x`
34+
- [fc-http-golang1.x](http-function/fc-http-golang1.x/src):`s init start-fc-http-golang1.x`
3535
- Custom案例(自定义运行时)
3636
- Golang [fc-custom-golang-event](custom-function/golang/fc-custom-golang-event/src):`s init fc-custom-golang-event`
3737
- Nodejs10 [fc-custom-nodejs10-event](custom-function/nodejs10/fc-custom-nodejs10-event/src):`s init fc-custom-nodejs10-event`

0 commit comments

Comments
 (0)