switches to gosimports for grouping (#849)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2022-11-09 07:04:24 +01:00
committed by GitHub
parent 329ccca6b1
commit af3281c39c
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ space :=
space +=
gofumpt := mvdan.cc/gofumpt@v0.4.0
goimports := golang.org/x/tools/cmd/goimports@v0.2.0
gosimports := github.com/rinchsan/gosimports/cmd/gosimports@v0.3.4
golangci_lint := github.com/golangci/golangci-lint/cmd/golangci-lint@v1.50.1
# sync this with netlify.toml!
hugo := github.com/gohugoio/hugo@v0.105.0
@@ -197,7 +197,7 @@ lint: $(golangci_lint_path)
.PHONY: format
format:
@go run $(gofumpt) -l -w .
@go run $(goimports) -local github.com/tetratelabs/ -w $(shell find . -name '*.go' -type f)
@go run $(gosimports) -local github.com/tetratelabs/ -w $(shell find . -name '*.go' -type f)
.PHONY: check
check:

View File

@@ -1,6 +1,6 @@
package main
// Force importing wazero here, so that we can see the actual wazero version in the main_test.go.
import (
// Force importing wazero here, so that we can see the actual wazero version in the main_test.go.
_ "github.com/tetratelabs/wazero/internal/version"
)