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

fix(js): change verdaccio childProcess kill order #28364

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

alancpazetto
Copy link
Contributor

Current Behavior

@nx/js:verdaccio current call npm config to setup npm scopes in global .npmrc file, which it's supposed to do.

However, when process is killed (using terminal exit command or any other way), the process is killed and doesn't restore changed config.

In my case I'm changing scope to my private scope (using scopes option), but after kill I need to restore manually.

Expected Behavior

When process be killed, restore all configs that was set.

Related Issue(s)

#28353

Fixes #28353

@alancpazetto alancpazetto requested a review from a team as a code owner October 8, 2024 16:37
Copy link

vercel bot commented Oct 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Oct 14, 2024 3:14pm

@alancpazetto
Copy link
Contributor Author

Hi @jaysoo

Can you help me?
It's look like a flask task, I've run same test in master branch and fail too.

@xiongemi xiongemi force-pushed the fix/verdaccio-childproccess-kill branch from b31dfe3 to c7a3814 Compare October 10, 2024 22:45
@xiongemi xiongemi merged commit aa2e860 into nrwl:master Oct 17, 2024
6 checks passed
jaysoo pushed a commit that referenced this pull request Oct 17, 2024
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
`@nx/js:verdaccio` current call `npm config` to setup npm scopes in
global `.npmrc` file, which it's supposed to do.

However, when process is killed (using terminal exit command or any
other way), the process is killed and doesn't restore changed config.

In my case I'm changing scope to my private scope (using `scopes`
option), but after kill I need to restore manually.

## Expected Behavior
When process be killed, restore all configs that was set.

## Related Issue(s)
#28353

Fixes #28353
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verdaccio doesn't clean npm config
5 participants