From b0b116b4a195dd5b0577249899d53ecace6ad38b Mon Sep 17 00:00:00 2001 From: rajatgoel <405844+rajatgoel@users.noreply.github.com> Date: Sat, 23 Dec 2023 13:29:45 -0800 Subject: [PATCH] Revert goimports --- .github/workflows/build.yml | 2 +- justfile | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ab5dea6..fa1e509 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: go-version-file: 'go.mod' - name: Go Format - run: go install golang.org/x/tools/cmd/goimports@latest && goimports -w . && git diff --exit-code + run: gofmt -w . && git diff --exit-code - name: Go Vet run: go vet ./... diff --git a/justfile b/justfile index 408471a..aa58271 100644 --- a/justfile +++ b/justfile @@ -1,11 +1,9 @@ setup: brew install go bufbuild/buf/buf golangci-lint sqlc goreleaser/tap/goreleaser fd - go install golang.org/x/tools/cmd/goimports@latest gen: buf generate proto fd sqlc.yaml . | xargs sqlc generate -f - goimports -w . lint: gen buf lint proto