tfx extension publish - Extension package is malformed/corrupted
See original GitHub issueHi All,
I am using tfx 0.8.3, I am able to create .VSIX file locally and publish it. I am doing the same thing using the Azure DevOps pipeline yaml referring to Step 6 on this link
The pipeline is able to create and publish package with the name foo.VSIX. The download task is also able to download the package with the same name foo.VSIX. However, when the pipeline runs the publish stage, it tries to run the below command. The **.gen**
is getting appended from somewhere an hence I think it is throwing the malformed error. I am not appending anything of this sort in my yaml publish task
tfx extension publish --json --no-color --service-url https://marketplace.visualstudio.com/ --auth-type pat --token *** --vsix foo.gen.vsix --debug-log-stream stderr 0 [ '[command]/opt/hostedtoolcache/tfx/0.8.3/x64/bin/tfx extension publish --json --no-color --service-url
Also, the foo.VSIX size is 26,460 KB when generated,
I am not sure the issue is caused because of the .gen getting added or the VSIX size.
Yaml for publish task
displayName: 'Publish ADO extension to marketplace'
inputs:
connectTo: 'VsTeam'
connectedServiceName: 'visual-studio-marketplace'
fileType: 'vsix'
vsixFile: '*.vsix'
publisherId: '$(publisherId)'
extensionId: '$(extensionId)'
extensionName: '$(extensionName)'
updateTasksVersion: false
extensionVisibility: 'private'
extensionPricing: 'free'
Error:
2020-11-06T22:59:43.0592466Z [command]/opt/hostedtoolcache/tfx/0.8.3/x64/bin/tfx extension publish --json --no-color --service-url https://marketplace.visualstudio.com/ --auth-type pat --token *** --vsix foo.gen.vsix --debug-log-stream stderr 0 [ ‘[command]/opt/hostedtoolcache/tfx/0.8.3/x64/bin/tfx extension publish --json --no-color --service-url https://marketplace.visualstudio.com/ --auth-type pat --token *** --vsix foo.gen.vsix --debug-log-stream stderr’,
2020-11-06T22:59:43.0593723Z ‘’ ]
2020-11-06T22:59:43.0595050Z 1 [ ‘[command]/opt/hostedtoolcache/tfx/0.8.3/x64/bin/tfx extension publish --json --no-color --service-url https://marketplace.visualstudio.com/ --auth-type pat --token *** --vsix foo.gen.vsix --debug-log-stream stderr’,
2020-11-06T22:59:43.0595780Z ‘’ ]
2020-11-06T22:59:43.0597093Z (node:5146) Warning: Accessing non-existent property ‘padLevels’ of module exports inside circular dependency 0 [ ‘(node:5146) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency’,
2020-11-06T22:59:43.0598178Z ‘(Use node --trace-warnings ...
to show where the warning was created)’,
2020-11-06T22:59:43.0598670Z ‘’ ]
2020-11-06T22:59:43.0599476Z (Use node --trace-warnings ...
to show where the warning was created) 1 [ ‘(node:5146) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency’,
2020-11-06T22:59:43.0600300Z ‘(Use node --trace-warnings ...
to show where the warning was created)’,
2020-11-06T22:59:43.0600685Z ‘’ ]
2020-11-06T22:59:43.0601266Z 2 [ ‘(node:5146) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency’,
2020-11-06T22:59:43.0601939Z ‘(Use node --trace-warnings ...
to show where the warning was created)’,
2020-11-06T22:59:43.0602322Z ‘’ ]
2020-11-06T22:59:44.0196697Z error: Extension package is malformed/corrupted 0 [ ‘error: Extension package is malformed/corrupted’, ‘’ ]
2020-11-06T22:59:44.0198221Z 1 [ ‘error: Extension package is malformed/corrupted’, ‘’ ]
2020-11-06T22:59:44.0275699Z 0 [ ‘’, ‘’ ]
2020-11-06T22:59:44.0278451Z 1 [ ‘’, ‘’ ]
2020-11-06T22:59:44.0369971Z ##[error]tfx failed with error: Error: The process ‘/opt/hostedtoolcache/tfx/0.8.3/x64/bin/tfx’ failed with exit code 255
2020-11-06T22:59:44.3925406Z ##[section]Finishing: Publish ADO extension to marketplace
Issue Analytics
- State:
- Created 3 years ago
- Comments:13
Top GitHub Comments
Glad you’re unblocked!
On Mon, Nov 9, 2020, 17:56 Tapas Udenia notifications@github.com wrote:
Worked by removing unused dependencies