Warning: Only build the SDK configurator from source if you must modify it. The master version may not be compatible with the Onegini SDK version that you are using.
Make sure you have go installed:
brew install go
Read more about setting up go in the official docs
Install dependencies:
go get -u github.com/spf13/cobra
go install github.com/jteeuwen/go-bindata/...@latest
Clone project:
go install github.com/onewelcome/sdk-configurator
Initialize module:
go mod init sdk-configurator
Install dependencies:
go mod tidy
In order for builds to reflect local changes, add following into go.mod
file
replace github.com/onewelcome/sdk-configurator => /path/to/project/locally
or run
go mod edit -replace github.com/onewelcome/sdk-configurator=/path/to/project/locally
and build project with:
make
Build executable file
go build
Build release files
make release
Install the go binary with:
make install
Or run without export a binary using:
go run main.go
Update binary assets using
go-bindata -pkg data -o data/bindata.go lib/