You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update openwhisk-client-go to release 1.1.0 as well as other pkg dependencies (#1124)
* Update openwhisk-client-go to release 1.1.0 as well as other pkg dependencies
* Update go-colorable to v1.10
* Update go-querystring, go-prettyjson to latest
* Update magiconair/properties, pelletier/go-toml, spf13/viper and its deps.
* Update go-18n to latest 1.x version, Do not adopt 2.0 in this PR
* Update goi18n to 1.10.1, ginkgo to 1.15.0, cobra to 1.1.3
* Update testify to 1.7.1 and tidy up
* Update DEPENDENCIES.md file
Copy file name to clipboardexpand all lines: DEPENDENCIES.md
+4-6
Original file line number
Diff line number
Diff line change
@@ -19,18 +19,16 @@
19
19
20
20
# Library dependencies for openwhisk-wskdeploy tool
21
21
22
-
Like other open source projects, openwhisk-wskdeploy is dependent on open source libraries, we
23
-
list them here to assure that all code dependencies have Apache 2.0 compatible licenses.
22
+
Like other open source projects, openwhisk-wskdeploy is dependent on open source libraries. The full list of direct dependencies is viewable in the Go module [go.mod](go.mod) file. Of those dependencies, some have Apache 2.0 compatible licenses which we make note of here:
24
23
25
24
| Library name | Licenses Type | License/Project Link |
Copy file name to clipboardexpand all lines: README.md
+35-26
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,7 @@ Here are some quick links to help you get started:
62
62
## Downloading released binaries
63
63
64
64
Executable binaries of `wskdeploy` are available for download on the project's GitHub [releases](https://github.com/apache/openwhisk-wskdeploy/releases) page:
We currently provide binaries for the following Operating Systems (OS) and architecture combinations:
@@ -220,7 +221,6 @@ gradle -version
220
221
221
222
>**Note** If using your own local Gradle installation, use the `gradle`command instead of the `./gradlew`commandin the build instructions below.
222
223
223
-
224
224
#### Building for internationalization
225
225
226
226
Please follow this process for building any changes to translatable strings:
@@ -273,6 +273,25 @@ $ go run main.go -m tests/usecases/triggerrule/manifest.yml -d tests/usecases/tr
273
273
274
274
> Be sure to [Sync your fork](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork) before starting any contributions to keep it up-to-date with the upstream repository.
275
275
276
+
### Running unit tests
277
+
278
+
You may use `go test` to test all unit tests within a package, for example:
279
+
280
+
```sh
281
+
go test ./deployers -tags=unit -v
282
+
go test ./parsers -tags=unit -v
283
+
```
284
+
285
+
or to run individual functiontests,for example:
286
+
287
+
```sh
288
+
go test ./parsers -tags=unit -v -run TestParseManifestForSingleLineParams
289
+
```
290
+
291
+
### Running integration tests
292
+
293
+
Integration tests are best left to the Travis CI build as they depend on a fully functional OpenWhisk environment to be deployed.
294
+
276
295
### Adding new dependencies
277
296
278
297
Please use `go get` to add new dependencies to the `go.mod` file:
@@ -295,22 +314,10 @@ go mod tidy
295
314
296
315
Although you might be tempted to edit the go.mod file directly, please use the recommended method of using the `go get` command:
go get -u github.com/project/libname # Using "latest" version
319
+
go get -u github.com/project/[email protected] # Using tagged version
320
+
go get -u github.com/project/libname@aee5cab1c # Using a commit hash
314
321
```
315
322
316
323
### Updating Go version
@@ -336,18 +343,20 @@ Committers can find instructions on how to create tagged releases here:
336
343
337
344
The "go get"command uses HTTPS with GitHub and when you attempt to "commit" code you might be prompted with your GitHub credentials. If you wish to use your SSH credentials, you may need to issue the following command to set the appropriate URL for your "origin" fork:
0 commit comments