diff --git a/Makefile b/Makefile index 73c3bba..2738a2d 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,8 @@ install-tools: go install github.com/bufbuild/buf/cmd/buf@v1.27.2 go install -tags 'postgres' github.com/golang-migrate/migrate/v4/cmd/migrate@v4.17.0 + # linting (todo: os-agnostic installation) + curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.15.0 generate-protobufs: buf generate @@ -10,4 +12,4 @@ format: gofmt -w -s . deploy-docker: - docker compose -f deploy/docker/compose.yaml -f deploy/docker/compose.override.yaml up --build \ No newline at end of file + docker compose -f deploy/docker/compose.yaml -f deploy/docker/compose.override.yaml up --build diff --git a/lefthook.yaml b/lefthook.yaml index 8a2088c..1a68f24 100644 --- a/lefthook.yaml +++ b/lefthook.yaml @@ -1,6 +1,6 @@ pre-commit: jobs: - - name: lint codebase - run: gofmt -e . + - name: lint go codebase + run: golangci-lint run - name: lint protobufs run: buf lint