Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1 KB

File metadata and controls

43 lines (35 loc) · 1 KB

Contributing to slurmprocessor

See slurmprocessor getting started guide.

Environment Setup

Install Go in your system. See Go installation guide for more details.

Tests

go test .

​​​

Formatting

To check formatting:

gofmt -s -l .

​​​

Lint

To check linting you'll need to install golangci-lint in your system. See golangci-lint installation guide for more details. If you already have go installed, you can run the following command to install golangci-lint:

go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.1
export PATH="$PATH:$(go env GOPATH)/bin"

To check linting:

golangci-lint run

​​​

Updating dependencies

Import your dependency in one of the .go files and then run:

go mod tidy