Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit dfe6497

Browse files
committed
Readme update, #27
1 parent c1c03c6 commit dfe6497

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ func HandleRequest(ctx context.Context, name MyEvent) (string, error) {
151151
func main() {
152152
lambda.Start(HandleRequest)
153153
}
154-
EOF
155154
```
156155

157156
2. Install Go buildtemplate
@@ -173,6 +172,16 @@ curl http://go-lambda.default.dev.triggermesh.io --data '{"Name": "Foo"}'
173172
"Hello Foo!"
174173
```
175174

175+
#### Dependecies
176+
177+
To have more control over the go project dependecies, KLR runtime will read and "ensure" `Gopkg.toml` file if it's available in the project's root. Without toml file, only `go get` will be executed before build.
178+
If the project has dependencies stored in a private repository, you can create k8s secret with SSH key that will be used for `git clone` operation:
179+
180+
```
181+
cat ~/.ssh/id_rsa | tm set git-auth
182+
```
183+
where `~/.ssh/id_rsa` is a path to SSH private key associated with your git account
184+
176185
### Ruby
177186

178187
1. Install Ruby 2.5 buildtemplate

0 commit comments

Comments
 (0)