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] Migrate from libnpmconfig to @npmcli/config #618

Merged
merged 16 commits into from
Jun 27, 2023

Conversation

d3xter666
Copy link
Contributor

fixes: SAP/ui5-tooling#786
JIRA: CPOUI5FOUNDATION-631

@d3xter666 d3xter666 requested a review from a team June 5, 2023 07:36
@coveralls
Copy link

coveralls commented Jun 5, 2023

Coverage Status

coverage: 95.844% (-0.002%) from 95.846% when pulling 3396bf1 on fix-remove-deprecated-packages into 00d6db5 on main.

lib/ui5Framework/npm/Registry.js Outdated Show resolved Hide resolved
lib/ui5Framework/npm/Registry.js Outdated Show resolved Hide resolved
lib/ui5Framework/npm/Registry.js Outdated Show resolved Hide resolved
@d3xter666 d3xter666 force-pushed the fix-remove-deprecated-packages branch from 8976c24 to cde5a95 Compare June 23, 2023 06:47
@d3xter666 d3xter666 requested review from matz3 and a team June 23, 2023 07:29
matz3
matz3 previously requested changes Jun 23, 2023
lib/ui5Framework/npm/Registry.js Outdated Show resolved Hide resolved
lib/ui5Framework/npm/Registry.js Outdated Show resolved Hide resolved
test/lib/graph/helpers/ui5Framework.integration.js Outdated Show resolved Hide resolved
test/lib/ui5framework/npm/Registry.js Show resolved Hide resolved
d3xter666 and others added 2 commits June 23, 2023 13:20
Co-authored-by: Matthias Oßwald <mat.osswald@sap.com>
@d3xter666 d3xter666 requested review from matz3 and a team June 23, 2023 10:37
@RandomByte
Copy link
Member

Internal smoke test succeeded (run no. 1398)

RandomByte
RandomByte previously approved these changes Jun 27, 2023
Now already cached through #_getPacote. Also, the initialization of the
variable was async, invalidating the cache when called concurrently.
@RandomByte RandomByte requested a review from flovogt June 27, 2023 08:11
@RandomByte RandomByte merged commit 13d019b into main Jun 27, 2023
@RandomByte RandomByte deleted the fix-remove-deprecated-packages branch June 27, 2023 12:24
@RandomByte RandomByte changed the title [INTERNAL] Migrate from libnpmconfig to @npmcli/config [FIX] Migrate from libnpmconfig to @npmcli/config Jun 27, 2023
if (!this._npmConfig) {
const {default: libnpmconfig} = await import("libnpmconfig");
const opts = {
cache: this._cacheDir,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a regression in this PR which removes the usage of a separate cacache dir within our .ui5 data directory.
With this PR the default cache of npm is unsed instead of our separate cache directory. I'll push a fix.

matz3 added a commit that referenced this pull request Sep 1, 2023
matz3 added a commit that referenced this pull request Sep 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated transitive dependencies with v3
5 participants