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(core): update nx cloud bundle install directory logic #29555

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

Cammisuli
Copy link
Member

Current Behavior

Whenever the nx-cloud package is installed in a workspace, we get errors about certain properties not being instantiated.

This happens because the old nx-cloud package placed the nx cloud bundle in node_modules/.cache/nx/cloud.

Nx will then eventually try to use the cloud bundle, and not look into the node_modules/.cache/nx/cloud directory, and instead look into .nx/cache/cloud. Because the bundle doesnt exist in the .nx/cache/cloud location, we will redownload the bundle, and not properly instantiate it.

Expected Behavior

Nx will now look into the legacy location in node_modules/.cache/nx/cloud when trying to get the cloud bundle.

Related Issue(s)

Fixes #

@Cammisuli Cammisuli requested a review from a team as a code owner January 8, 2025 19:13
@Cammisuli Cammisuli requested a review from xiongemi January 8, 2025 19:13
Copy link

vercel bot commented Jan 8, 2025

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

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jan 8, 2025 7:18pm

Copy link

nx-cloud bot commented Jan 8, 2025

View your CI Pipeline Execution ↗ for commit 97ee5cd.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 8m 58s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 21s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base=71653... ✅ Succeeded 1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗
nx documentation --no-dte ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-08 21:05:09 UTC

@Cammisuli Cammisuli force-pushed the feature/nxc-1298-nx-cloud-package-errors-on-v203 branch from 82ea68c to 249e609 Compare January 8, 2025 19:14
@Cammisuli Cammisuli force-pushed the feature/nxc-1298-nx-cloud-package-errors-on-v203 branch from 249e609 to 97ee5cd Compare January 8, 2025 19:14
@Cammisuli Cammisuli enabled auto-merge (squash) January 8, 2025 20:50
@Cammisuli Cammisuli merged commit e99cf07 into master Jan 8, 2025
6 checks passed
@Cammisuli Cammisuli deleted the feature/nxc-1298-nx-cloud-package-errors-on-v203 branch January 8, 2025 21:04
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.

3 participants