-
Notifications
You must be signed in to change notification settings - Fork 90
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
broken devcontainer experience: npm ci fails #383
Comments
@trenttobler Thanks for submitting a ticket! I made a branch here and tested in codespaces and locally via docker desktop. EditOpps nope, it still resolves to using git + ssh if you look at the npm list afterwords. |
@trenttobler this was merged into the master branch and should be good for you to use now. |
Describe the bug
fschwaiger/cobertura-parse npm package link uses git/ssh. It looks like this causes issues in negotiating the ssh key when installing npm packages from within the container. I suspect there may be a way to configure this, but wondering if migrating to use https resolution instead works.
Steps To Reproduce
rm -rf node_modules
npm i
Work Arounds
Option A (from devcontainer);
npm add cobertura-parse@https://github.com/fschwaiger/cobertura-parse#82b0333cb1580f6f337b5d44b04e2f5ca8711b7e
npm ci
Option B (from container host):
npm ci
on a command lineExpected behaviour
I like that you've added the devcontainer experience. I have been advocating this same "development tooling as code" approach myself.
I think it would be expected that one can manage npm dependencies from within the container. This can be challenging for the non-npm public repository references - some orgs may have restrictions on git https vs. ssh that can limit be limiting,
Desktop (please complete the following information):
Additional context
Its unfortunate that the published cobertura-parse npm package is old and required a fork to fix. More ideal would be to be able to reference it directly instead of indirectly from github.
My original goal when I started exploring the code was to see if I could integrate the Koverage extension and, further, to enhance it with both line and branch coverage percentages.
The text was updated successfully, but these errors were encountered: