Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateGoVersion ¶
func UpdateGoVersion() error
UpdateGoVersion makes required changes in order to switch to a new version of Go set in `./.go-version`.
Types ¶
type Deps ¶
Deps contains targets related to checking dependencies
func (Deps) CheckModuleTidy ¶
CheckModuleTidy checks if `go mod tidy` was run before the last commit.
type Linter ¶
Linter contains targets related to linting the Go code
func (Linter) CheckConfig ¶
CheckConfig makes sure that the `.golangci.yml` does not have uncommitted changes
func (Linter) Install ¶
Install installs golangci-lint (https://golangci-lint.run) to `./build` using the official installation script downloaded from GitHub. If the linter binary already exists does nothing.
func (Linter) LastChange ¶
LastChange runs the linter against all files changed since the fork point from `main`. If the current branch is `main` then runs against the files changed in the last commit.
func (Linter) UpdateGoVersion ¶
UpdateGoVersion updates the linter configuration with the new version of Go.