Commit ed23830e authored by suyanlong's avatar suyanlong

update Makefile and use make goimports cmd format

parent d0ffd216
Pipeline #8010 canceled with stages
......@@ -171,7 +171,7 @@ aligner:
@aligner -r -c "//" -e ".go" -i ./internal/repo/a_repo-packr.go comment
goimports:
@goimports-reviser -dir-path ./ -project-name github.com/link33/sidecar -format -rm-unused
@goimports-reviser -dir-path ./ -project-name github.com/link33/sidecar -ignore-dir mock -rm-unused -set-alias -format
aligner-check:
@aligner -r -c "//" -e ".go" -i ./internal/repo/a_repo-packr.go check
......
......@@ -8,7 +8,7 @@ import (
"github.com/Rican7/retry"
"github.com/Rican7/retry/strategy"
"github.com/ipfs/go-cid"
cid "github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/meshplus/bitxhub-kit/crypto"
network "github.com/meshplus/go-lightp2p"
......
......@@ -15,7 +15,7 @@ import (
"github.com/gobuffalo/packr"
"github.com/meshplus/bitxhub-kit/crypto"
"github.com/meshplus/bitxhub-kit/crypto/asym"
"github.com/mitchellh/go-homedir"
homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/viper"
)
......
......@@ -6,7 +6,7 @@ import (
"path/filepath"
"testing"
"github.com/mitchellh/go-homedir"
homedir "github.com/mitchellh/go-homedir"
"github.com/stretchr/testify/require"
)
......
......@@ -3,7 +3,7 @@ package plugins
import (
"context"
"github.com/hashicorp/go-plugin"
plugin "github.com/hashicorp/go-plugin"
"google.golang.org/grpc"
"github.com/link33/sidecar/model/pb"
......
......@@ -5,8 +5,8 @@ import (
"os/exec"
"path/filepath"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin"
hclog "github.com/hashicorp/go-hclog"
plugin "github.com/hashicorp/go-plugin"
"github.com/link33/sidecar/internal/repo"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment