Skip to content

Commit

Permalink
Revert golang version changes, uniform golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtamm committed Sep 11, 2024
1 parent 394a78f commit e2dce02
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
version: latest
skip-cache: true
args: --exclude-dirs tests --timeout 3m --verbose -D unused -D errcheck -D staticcheck -D govet -D gosimple -D ineffassign
args: --verbose --timeout 3m --disable-all --enable=govet --enable=gofmt --enable=goimports --enable=misspell

build:
runs-on: ubuntu-latest
Expand Down
15 changes: 6 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ build:
@touch version/version.go
@go build -ldflags '$(VERSION_LDFLAGS)' -buildvcs=false .

# Build an unoptimized version of the code for use during debugging
# Build an unoptimized version of the code for use during debugging
# https://go.dev/doc/gdb
debug:
@go install -gcflags=all="-N -l"
Expand Down Expand Up @@ -101,14 +101,11 @@ lint-depends:

# Run code style and other checks
lint:
@golangci-lint run --timeout 3m --disable-all --enable=vet --enable=golint --enable=gofmt --enable=goimports --enable=misspell \
--skip-dirs "vendor" \
--skip-dirs "webdash" \
--skip-dirs "cmd/webdash" \
--skip-dirs "funnel-work-dir" \
-e '.*bundle.go' -e ".*pb.go" -e ".*pb.gw.go" \
@golangci-lint run --timeout 3m --disable-all --enable=govet --enable=gofmt --enable=goimports --enable=misspell \
--exclude-dirs "(cmd/termdash|webdash|funnel-work-dir)" \
./...
@golangci-lint run --timeout 3m --disable-all --enable=vet --enable=gofmt --enable=goimports --enable=misspell ./cmd/termdash/...
@golangci-lint run --timeout 3m --disable-all --enable=govet --enable=gofmt --enable=goimports --enable=misspell \
./cmd/termdash/...

# Run all tests
test:
Expand Down Expand Up @@ -236,7 +233,7 @@ docker-dind:
docker-dind-rootless:
docker build -t ohsucompbio/funnel-dind-rootless:latest -f Dockerfile.dind-rootless .

# Create a release on Github using GoReleaser
# Create a release on Github using GoReleaser
release:
@go get github.com/buchanae/github-release-notes
@goreleaser \
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module github.com/ohsu-comp-bio/funnel

go 1.22
go 1.21

toolchain go1.22.7
toolchain go1.21.13

require (
cloud.google.com/go/datastore v1.15.0
Expand Down

0 comments on commit e2dce02

Please sign in to comment.