You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build the development environment for hyperledger fabric 2.2.1 by following this tutorial, during the verification of build environment I'm facing goimports error, when I'm running make basic-checks for performing the basic checks for license, spelling, trailing spaces and linter, I'm getting following error.
All files are excluded from having license headers
Building github.com/client9/misspell/cmd/misspell -> misspell
fatal: bad revision 'HEAD'
fatal: ambiguous argument 'HEAD^..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Checking changed go files for spelling errors ...
xargs: misspell: No such file or directory
spell checker passed
Checking for go:generate parent path references
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Checking trailing spaces ...
DEP: Checking for dependency issues..
./scripts/check_deps.sh
Building golang.org/x/tools/cmd/goimports -> goimports
LINT: Running code checks..
./scripts/golinter.sh
Checking with gofmt
Checking with goimports
The following files contain goimports errors
bccsp/pkcs11/pkcs11_test.go
The goimports command 'goimports -l -w' must be run for these files
Makefile:176: recipe for target 'linter' failed
make: *** [linter] Error 1
I'm not able to find what is wrong in bccsp/pkcs11/pkcs11_test.go file.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to build the development environment for hyperledger fabric 2.2.1 by following this tutorial, during the verification of build environment I'm facing goimports error, when I'm running make basic-checks for performing the basic checks for license, spelling, trailing spaces and linter, I'm getting following error.
I'm not able to find what is wrong in
bccsp/pkcs11/pkcs11_test.go
file.Beta Was this translation helpful? Give feedback.
All reactions