switches to gosimports for grouping (#849)
Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
4
Makefile
4
Makefile
@@ -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:
|
||||
|
||||
2
internal/version/testdata/main.go
vendored
2
internal/version/testdata/main.go
vendored
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user