Installation
You may install Skel either by cloning the git repo and using golang's install command, or by copying the 'skel' binary from the repo's 'bin' directory; the latter is recommended since you will need to update it from time to time.
In either case, you will need to ensure that Git is set up and can communicate with the cto-github.cisco.com server. See the go-msx README for details.
Install from Artifactory
-
Download the skel tarball:
MacOS:
curl -L -o - https://engci-maven-master.cisco.com/artifactory/symphony-group/com/cisco/vms/go-msx-skel/latest/go-msx-skel-darwin-latest.tar.gz | tar -xzf -Linux:
curl -L -o - https://engci-maven-master.cisco.com/artifactory/symphony-group/com/cisco/vms/go-msx-skel/latest/go-msx-skel-linux-latest.tar.gz | tar -xzf - -
Move the skel binary to a location in your path:
mv skel ~/go/bin
Install via Go
Prerequisite: Go 1.18+
-
Ensure your GOBIN environment variable is correctly set and referenced in your PATH. For example:
export GOPATH=~/go export PATH=$PATH:$GOPATH/binRecall that GOBIN defaults to
$GOPATH/bin, or$HOME/go/binif theGOPATHenvironment variable is not set. -
Be sure to set your Go proxy settings correctly. For example:
go env -w GOPRIVATE=cto-github.cisco.com/NFV-BU -
Check-out go-msx into your local workspace:
mkdir -p $HOME/msx && cd $HOME/msx git clone git@cto-github.cisco.com:NFV-BU/go-msx.git cd go-msx go mod download -
Install
skel:make install-skel