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
{{ message }}
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
Packaging a go chaincode to a tar.gz file cannot be deployed as the contents have the wrong path separators
Description
I had this problem with my own chaincode but as a test I created a new go contract using the new project command and tried to package it. exporting it to a linux system and using tar to first unpack the chaincode package to get to the code.tar.gz then unpacking the code.tar.gz you see that all the file names have been changed and everything unpacks to the root directory
a package that can be deployed to a fabric network
Actual Behavior
The package is unusable
Your Environment
IBM Blockchain Platform Extension Version: 2.0.6
Visual Studio Code version: 1.63.2
Operating System and version: Windows 10 Enterprise
Extension running in windows (ie not running in a WSL2 instance)
Workaround
VSCode allows for extensions to be run inside of WSL using the remote WSL package. You can run the IBM Blockchain extension in WSL instead in order to package a Go chaincode, however that will change the dynamics of how you might run the extensions local fabric environments
The text was updated successfully, but these errors were encountered:
I am on Windows 10. I did a fresh install. I created a local network and then created a boilerplate project. Same issue with the double \, moreover, the tar'd files that my colleagues generate do not have the 'vendor' folder (they are on a mac). None of my contracts deploy locally or remotely.
The BasePackager.ts is my suspicion on the first count:
Here is what is there:
const desc = {
name: path.join('META-INF', path.relative(filePath, entry.path)).split('\').join('/'),
fqp: entry.path
};
perhaps:
const desc = {
name: path.join('META-INF', path.relative(filePath, entry.path)).split('\').join('/'),
fqp: entry.path.split('\').join('/')
};
Packaging a go chaincode to a tar.gz file cannot be deployed as the contents have the wrong path separators
Description
I had this problem with my own chaincode but as a test I created a new go contract using the new project command and tried to package it. exporting it to a linux system and using tar to first unpack the chaincode package to get to the code.tar.gz then unpacking the code.tar.gz you see that all the file names have been changed and everything unpacks to the root directory
Expected Behavior
a package that can be deployed to a fabric network
Actual Behavior
The package is unusable
Your Environment
Workaround
VSCode allows for extensions to be run inside of WSL using the remote WSL package. You can run the IBM Blockchain extension in WSL instead in order to package a Go chaincode, however that will change the dynamics of how you might run the extensions local fabric environments
The text was updated successfully, but these errors were encountered: