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): identify correct circular dependecies #29759

Conversation

xiongemi
Copy link
Collaborator

Current Behavior

currently, when detecting circular dep in release, it tests dependentProject.target === projectName, which adds all projects as circular deps. because filter allDependentProjects is localPackageDependency.target === projectName, so dependentProject.target === projectName is always true

Expected Behavior

correct the logic of detecting circular deps, it should test

  • current project.target -> a (source: current project, target: a)
  • a.target -> current project (source: a, target: current project)

Related Issue(s)

Fixes #28336

@xiongemi xiongemi requested a review from a team as a code owner January 27, 2025 05:48
@xiongemi xiongemi requested a review from ndcunningham January 27, 2025 05:48
Copy link

vercel bot commented Jan 27, 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 Feb 19, 2025 3:39am

Copy link

nx-cloud bot commented Jan 27, 2025

View your CI Pipeline Execution ↗ for commit e74160c.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 39m 30s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 16s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check --base= --he... ✅ Succeeded 7s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 5s View ↗
nx documentation ✅ Succeeded 1m 31s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-19 04:21:55 UTC

@xiongemi xiongemi force-pushed the feature/nxc-1380-nx-release-increments-version-inconsistently branch from 19136bf to e74160c Compare February 19, 2025 03:36
@xiongemi xiongemi requested a review from a team as a code owner February 19, 2025 03:36
@xiongemi xiongemi requested a review from Cammisuli February 19, 2025 03:36
@JamesHenry JamesHenry merged commit 1047991 into master Feb 19, 2025
12 checks passed
@JamesHenry JamesHenry deleted the feature/nxc-1380-nx-release-increments-version-inconsistently branch February 19, 2025 09:13
FrozenPandaz pushed a commit that referenced this pull request Feb 20, 2025
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 Feb 25, 2025
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.

NX release doesn't propagate new version to dependent projects
2 participants