In order to develop OpenWhisk CLI on your local machine. First, install the prerequisites to download and build OpenWhisk CLI: installing Git.
Then, save the project in the location compliant with the Go standard naming convention, which means you need to created a directory named $GOPATH/src/github.com/apache/ and download the source code via the following commands:
$ cd $GOPATH/src/github.com/apache/
$ git clone https://github.com/apache/openwhisk-cli.git
After cloning the source code, you need to install all the dependencies by running the command under openwhisk cli folder:
$ go get -d -t ./...
or
$ make deps
You should be able to build the binaries with either the go command, or the Gradle command, which is available in README.
If you would like to implement a new feature, please raise an issue before sending a pull request, so the feature can be discussed. This is to avoid you spending your valuable time working on a feature that the project developers are not willing to accept into the code base.
If you would like to fix a bug, please raise an issue before sending a pull request, so it can be discussed. If the fix is trivial or non controversial then this is not usually necessary.
The project maintainers use LGTM (Looks Good To Me) in comments on the code review to indicate acceptance. A change requires LGTMs from two of the maintainers of each component affected.
Please use Slack channel #whisk-users.
Project was written with Go v1.9
. It has a dependency on openwhisk-client-go.
This repository needs unit tests.
Please provide information that helps the developer test any changes they make before submitting.
Use idomatic go. Document exported functions.
Homebrew is used to install wsk
locally. Once we release a new version of wsk
we should update its version in Homebrew.
Get the new release SHA256 checksum by downloading the Source Code (tar.gz) from the releases page and running shasum -a 256 X.Y.Z.tar.gz
on the tarball.
Update brew formula with the automation command brew bump-formula-pr
:
$ brew bump-formula-pr \
--url='https://github.com/apache/openwhisk-cli/archive/X.Y.Z.tar.gz' \
--sha256='PASTE THE SHA256 CHECKSUM HERE' \
wsk