Skip to content

Commit

Permalink
chore: remove gofmt and fix golang-ci version (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
kehiy authored Aug 21, 2023
1 parent 5a08896 commit 27ab5c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
run: make build_gui

- name: Installing golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1

- name: Lint check
run: BUILD_TAG=gtk make check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v3

- name: Installing golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1

- name: Formatting and linting the project
run: make check
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ all: build test
### Tools needed for development
devtools:
@echo "Installing devtools"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@v2.12
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.12
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
Expand Down Expand Up @@ -58,9 +58,8 @@ proto:
cd www/grpc/ && statik -m -f -src swagger-ui/

########################################
### Formatting, linting, and vetting
### Formatting the code
fmt:
gofmt -s -w .
gofumpt -l -w .

check:
Expand Down

0 comments on commit 27ab5c0

Please sign in to comment.