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: ...@@ -171,7 +171,7 @@ aligner:
@aligner -r -c "//" -e ".go" -i ./internal/repo/a_repo-packr.go comment @aligner -r -c "//" -e ".go" -i ./internal/repo/a_repo-packr.go comment
goimports: 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-check:
@aligner -r -c "//" -e ".go" -i ./internal/repo/a_repo-packr.go check @aligner -r -c "//" -e ".go" -i ./internal/repo/a_repo-packr.go check
......
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
"github.com/Rican7/retry" "github.com/Rican7/retry"
"github.com/Rican7/retry/strategy" "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/libp2p/go-libp2p-core/peer"
"github.com/meshplus/bitxhub-kit/crypto" "github.com/meshplus/bitxhub-kit/crypto"
network "github.com/meshplus/go-lightp2p" network "github.com/meshplus/go-lightp2p"
......
...@@ -15,7 +15,7 @@ import ( ...@@ -15,7 +15,7 @@ import (
"github.com/gobuffalo/packr" "github.com/gobuffalo/packr"
"github.com/meshplus/bitxhub-kit/crypto" "github.com/meshplus/bitxhub-kit/crypto"
"github.com/meshplus/bitxhub-kit/crypto/asym" "github.com/meshplus/bitxhub-kit/crypto/asym"
"github.com/mitchellh/go-homedir" homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/viper" "github.com/spf13/viper"
) )
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/mitchellh/go-homedir" homedir "github.com/mitchellh/go-homedir"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )
......
...@@ -3,7 +3,7 @@ package plugins ...@@ -3,7 +3,7 @@ package plugins
import ( import (
"context" "context"
"github.com/hashicorp/go-plugin" plugin "github.com/hashicorp/go-plugin"
"google.golang.org/grpc" "google.golang.org/grpc"
"github.com/link33/sidecar/model/pb" "github.com/link33/sidecar/model/pb"
......
...@@ -5,8 +5,8 @@ import ( ...@@ -5,8 +5,8 @@ import (
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"github.com/hashicorp/go-hclog" hclog "github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin" plugin "github.com/hashicorp/go-plugin"
"github.com/link33/sidecar/internal/repo" "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