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

only ensure real npm packages #486

Merged
merged 1 commit into from
Oct 28, 2023
Merged

only ensure real npm packages #486

merged 1 commit into from
Oct 28, 2023

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Oct 28, 2023

nodesource's nodejs packages have Provides: npm which means that when we try to ensure => absent the npm package, it really removes the nodejs package we want.

by setting allow_virtual => false we ensure that we only remove real packages.

Fixes: 160ea93

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

manifests/install.pp Outdated Show resolved Hide resolved
nodesource's `nodejs` packages have `Provides: npm` which means that when
we try to `ensure => absent` the `npm` package, it really removes the
`nodejs` package we want.

by setting `allow_virtual => false` when using nodesource packages,
we ensure that we only remove real packages.

Fixes: 160ea93
@evgeni evgeni added the enhancement New feature or request label Oct 28, 2023
@evgeni evgeni merged commit 4340164 into master Oct 28, 2023
23 checks passed
@evgeni evgeni deleted the fixup-npm-absent branch October 28, 2023 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants