To ensure you have a successful experience working with Pylons, your local system must meet these technical requirements.
This installation method removes existing Go installations, installs Go in /usr/local/go/bin/go
, and sets the environment variables.
- Go to https://golang.org/dl.
- Download the binary release that is suitable for your system.
- Follow the installation instructions.
Note: We recommend not using brew to install Go.
Git pre-commit
hooks run before any commit to the Git repository. These hooks verify that each commit passes basic formatting and linting checks.
-
Homebrew
brew install pre-commit
-
Pip package manager
pip install pre-commit
After installing the pre-commit
binary, run the following command in the base directory of the pylons
repository:
pre-commit install
Now, any time git commit *
is run, the pre-commit
hooks run before the commit can be finalized.
The golangci-lint
linter runner is used in the make lint
command that is provided to developers.
To install golangci-lint
into $GOPATH/bin
, run:
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.41.1
The goimports
tool is used int the make format
command taht is provided to developers.
To install goimports
using the go get
command:
go get golang.org/x/tools/cmd/goimports