Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing components #318

Closed
debopamsengupta opened this issue Nov 4, 2016 · 3 comments
Closed

Publishing components #318

debopamsengupta opened this issue Nov 4, 2016 · 3 comments
Assignees

Comments

@debopamsengupta
Copy link
Member

debopamsengupta commented Nov 4, 2016

OC version: 0.33.22
node: 6.5.0

When trying to publish a new component to a registry, I get the following error:

An error happened when publishing the component: TypeError: targz.extract is not a function
    at module.exports (/usr/src/app/node_modules/oc/src/registry/domain/extract-package.js:16:9)
    at /usr/src/app/node_modules/oc/src/registry/routes/publish.js:43:5
    at callbacks (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:164:37)
    at options.beforePublish (/usr/src/app/node_modules/oc/src/registry/domain/options-sanitiser.js:14:55)
    at callbacks (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:164:37)
    at param (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:138:11)
    at param (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:135:11)
    at param (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:135:11)
    at pass (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:145:5)
    at Router._dispatch (/usr/src/app/node_modules/oc/node_modules/express/lib/router/index.js:173:5)

The documentation for the package targz (https://www.npmjs.com/package/targz) says to use the function decompress instead of extract

Am I missing something ? Any help appreciated :)

@matteofigus
Copy link
Member

Good catch I think this bug was introduced with 0.33.31 #316

I'll have a look now. Thanks

@debopamsengupta
Copy link
Member Author

Hi @matteofigus thanks for the quick response, will this be released as a new version soon ? :)

@matteofigus
Copy link
Member

@debopamsengupta just released this with 0.33.23 ;) Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants