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): nx import detects plugins synchronously #27958

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

jaysoo
Copy link
Member

@jaysoo jaysoo commented Sep 17, 2024

This PR switches globWithWorkspaceContext with globWithWorkspaceContextSync for nx init and nx import, since the latter isn't guaranteed to have updated file map during the init/import process.

Note: Also updates Gradle import test to ensure the destination repo does not have uncommitted changes.

Current Behavior

Sometimes plugins are not detected.

Expected Behavior

Always detect plugins.

Related Issue(s)

Fixes #

@jaysoo jaysoo requested a review from a team as a code owner September 17, 2024 18:07
@jaysoo jaysoo requested a review from AgentEnder September 17, 2024 18:07
Copy link

vercel bot commented Sep 17, 2024

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 Sep 17, 2024 8:35pm

@jaysoo jaysoo force-pushed the fix/import-plugins-no-daemon branch from b9bc5bc to ca6225e Compare September 17, 2024 18:08
@jaysoo jaysoo force-pushed the fix/import-plugins-no-daemon branch from ca6225e to 83b0d9f Compare September 17, 2024 18:54
@jaysoo jaysoo force-pushed the fix/import-plugins-no-daemon branch from 83b0d9f to c04d72d Compare September 17, 2024 19:17
@jaysoo jaysoo force-pushed the fix/import-plugins-no-daemon branch 2 times, most recently from c0387b3 to 95c8718 Compare September 17, 2024 19:50
@jaysoo jaysoo force-pushed the fix/import-plugins-no-daemon branch from 95c8718 to 9b57a30 Compare September 17, 2024 20:32
@jaysoo jaysoo merged commit eb61254 into master Sep 17, 2024
6 checks passed
@jaysoo jaysoo deleted the fix/import-plugins-no-daemon branch September 17, 2024 20:43
FrozenPandaz pushed a commit that referenced this pull request Sep 18, 2024
This PR switches `globWithWorkspaceContext` with
`globWithWorkspaceContextSync` for `nx init` and `nx import`, since the
latter isn't guaranteed to have updated file map during the init/import
process.

Note: Also updates Gradle import test to ensure the destination repo
does not have uncommitted changes.

<!-- 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
Sometimes plugins are not detected.

## Expected Behavior
Always detect plugins.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit eb61254)
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 Sep 25, 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.

3 participants