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

Extensions are not npm_shrinkwrap'ed #8570

Closed
jrieken opened this issue Jun 30, 2016 · 9 comments
Closed

Extensions are not npm_shrinkwrap'ed #8570

jrieken opened this issue Jun 30, 2016 · 9 comments
Assignees
Labels
important Issue identified as high-priority
Milestone

Comments

@jrieken
Copy link
Member

jrieken commented Jun 30, 2016

We have extensions that have npm dependencies, like css or json. We don't shrink-wrap them which means each build from the same commit has a chance of being different.

@Microsoft/vscode

@jrieken jrieken added the important Issue identified as high-priority label Jun 30, 2016
@bpasero
Copy link
Member

bpasero commented Jun 30, 2016

The list of extensions with node_modules folder:

All of these need shrinkwrap and maybe a smoke test after that.

@bpasero bpasero added this to the June 2016 milestone Jun 30, 2016
@bpasero
Copy link
Member

bpasero commented Jun 30, 2016

Also, if you have recently moved code to a new extension, please make sure you have removed the dependency of your extension from our package.json and shrinkwrap file.

@jrieken
Copy link
Member Author

jrieken commented Jun 30, 2016

@bpasero Can you give pointers how to create the shrink_wrap file?

@bpasero
Copy link
Member

bpasero commented Jun 30, 2016

What I typically do is:

  • Make sure to have npm 3 installed (to get a flat shrinkwrap file)
  • Copy the package.json to a new, empty folder outside VSCode
  • Delete all devDependencies from the package.json file
  • Open a prompt in that new folder
  • Run "npm install" and wait for it to finish without errors
  • Run "npm shrinkwrap" and wait for it to finish without errors
  • Copy the npm-shrinkwrap.json file into same location as the package.json file in the extension

@jrieken
Copy link
Member Author

jrieken commented Jul 1, 2016

Since @aeschli is out, pls someone jump in. Also, we might need to run the OSS tool after this again 👻

@isidorn
Copy link
Contributor

isidorn commented Jul 1, 2016

I can do it instead of @aeschli

@bpasero bpasero assigned isidorn and unassigned aeschli Jul 1, 2016
@bpasero
Copy link
Member

bpasero commented Jul 1, 2016

I updated the description with this important step:

  • Copy the npm-shrinkwrap.json file into same location as the package.json file in the extension

@dbaeumer
Copy link
Member

dbaeumer commented Jul 1, 2016

Done for TypeScript

@dbaeumer dbaeumer removed their assignment Jul 1, 2016
@isidorn
Copy link
Contributor

isidorn commented Jul 1, 2016

Seems to be done for all -> closing

@isidorn isidorn closed this as completed Jul 1, 2016
@egamma egamma mentioned this issue Jul 25, 2016
89 tasks
This was referenced Jan 23, 2017
@kieferrm kieferrm mentioned this issue Feb 21, 2017
38 tasks
@joaomoreno joaomoreno mentioned this issue Feb 21, 2017
63 tasks
@isidorn isidorn mentioned this issue Mar 27, 2017
98 tasks
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
important Issue identified as high-priority
Projects
None yet
Development

No branches or pull requests

5 participants