Execute the packing command.
peer lifecycle chaincode package sacc.tar.gz
–path github.com/hyperledger/fabric-cluster/chaincode/go/
–label sacc_1
Error Messages:
Error: error getting chaincode bytes: ‘go list’ failed with: cannot find module providing package github.com/hyperledger/fabric-cluster/chaincode/go: working directory is not part of a module: exit status 1
Solution:
The command go env -w GO111MODULE=auto solves this problem
Read More:
- [Go] Solve can’t load package: cannot find module providing package github.com/xxxxx
- [Solved] cannot find package “go.opentelemetry.io/otel/api/trace“ in any of
- [Solved] Golang Error: main.go:5:2: package go_code/chapter10/factory/model is not in GOROOT
- [Solved] Error: Cannot find module ‘webpack-cli/package.json‘
- [Solved] VScode Error: find_package(catkin) failed
- [Solved] webpack.config.js configuration encountered Error: Cannot find module’@babel/core’&&Cannot find module’@babel/plugin-transform-react-jsx’
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- Go build package error: TARGET_OS_MAC & IOMasterPort
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- [Solved] KEIL Compile Error: Error: L6220E: Load region LR_IROM1 size (65552 bytes) exceeds limit (65536 bytes)……
- [Solved] Error running ‘go build myfir_go_project‘: Cannot run program
- [Solved] Fabric_sdk_go:QueryBlockConfig failed: QueryBlockConfig failed: target(s) required
- [GO] The entry file under the main package in golang calls other go file functions and appears undefined
- GO Exception Runnerw.exe: CreateProcess failed with error 21
- Error: Cannot find module ‘png-js‘ [How to Solve]
- [Solved] TS Error: Could not find a declaration file for module
- A mistake about implicitly providing default constructors
- Go declares that the local variable does not use command line arguments. Main. Go: 4:6: a declared but not used
- [Solved] TensorFlow severing Container Creat Error: failed: Out of range: Read less bytes than requested