Puccini tries to follow the conventions of the Go programming community. However, newcomers to Go might not know where to start. Here are some scripts to get you up in running, in order:
This builds the Puccini executables, first making sure to download any necessary dependencies.
You will find the output in
bin under your
GOPATH. If you stick to the defaults, it would
You might find it convenient to have
~/go/bin on your search path. For Bash, add this to your
The Go compiler will only compile changed files. Also, it’s a very fast compiler. So, generally you should not be concerned about this step in your toolchain.
Dependency management is handled by Go modules,
introduced in Go 1.11. See the files
Installs bash completion scripts for the current user, for the current build of Puccini. This allows
you to press TAB to complete commands starting with
puccini-clout, etc. You will need
to reload your bash shell to see the effect.
exec bash may work.
You don’t need to run this normally. Run it only if you change any of the files in the
assets directory. It reads those files and wraps them in Go code so that they can be
compiled into Puccini’s executables. So, after running this you would likely also want to re-run
build and then some tests using Go’s built-in testing tool.
This script installs and runs the amazing GoReleaser tool in order to cross-compile Puccini, create installation packages for Linux, Windows, and MacOS, and publish them to GitHub. It uses the .goreleaser.yml file for its configuration.
Run it with the “-t” switch to do a test release, which will create local distributions (under
dist/release/) without publishing them to GitHub.