Skip to content

fix(core): correct the 22.6.0 gitignore and analytics migration wiring - #36356

Merged
FrozenPandaz merged 1 commit into
masterfrom
fix-migrate-misc-issues
Jul 15, 2026
Merged

fix(core): correct the 22.6.0 gitignore and analytics migration wiring#36356
FrozenPandaz merged 1 commit into
masterfrom
fix-migrate-misc-issues

Conversation

@leosvelperez

@leosvelperez leosvelperez commented Jul 15, 2026

Copy link
Copy Markdown
Member

Current Behavior

A merge conflict during the move to the ./dist/... build layout left two Nx core migrations miswired. The 22-6-0-add-claude-settings-local-to-git-ignore migration pointed at update-17-3-0/update-nxw, so from 22.6.2 / 22.7.0-beta.2 onward, workspaces migrating across 22.6.0-rc.0 ran the nx-wrapper update instead of adding .claude/settings.local.json to .gitignore. The 22-6-0-enable-analytics-prompt entry was dropped entirely, so that migration stopped shipping after 22.6.1.

Expected Behavior

The gitignore migration runs its real implementation (version left at 22.6.0-rc.0), and the analytics-prompt migration is wired again at its original 22.6.0-beta.11.

assertValidMigrationPaths now fails when a migration entry-point file (a top-level .ts with a default export under a version dir) is referenced by no migrations.json entry, so a stranded or leftover migration file is caught in CI. That reverse check surfaced update-17-3-0/nx-release-path, an unwired migration dead since 2023, which is removed.

Related Issue(s)

Fixes NXC-4670


View session information ↗

A merge conflict during the move to the `./dist/...` build layout mispointed
the `22-6-0-add-claude-settings-local-to-git-ignore` migration at
`update-17-3-0/update-nxw` and dropped the `22-6-0-enable-analytics-prompt`
entry entirely. From 22.6.2 / 22.7.0-beta.2 onward, workspaces crossing
22.6.0-rc.0 ran the nx-wrapper update instead of adding
`.claude/settings.local.json` to `.gitignore`, and the analytics-prompt
migration stopped shipping.

Repoint the gitignore migration at its real implementation (version left at
22.6.0-rc.0) and restore the analytics-prompt entry at its original
22.6.0-beta.11.

To prevent a recurrence, `assertValidMigrationPaths` now fails when a
migration entry-point file (a top-level `.ts` with a default export under a
version dir) is referenced by no migrations.json entry. The reverse check
catches both a stranded target and a leftover unwired file. It surfaced
`update-17-3-0/nx-release-path`, an unwired migration dead since 2023, now
removed.
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 64a6e99
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6a57744fe0072c00085b5474
😎 Deploy Preview https://deploy-preview-36356--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 64a6e99
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/6a57744ffff1dc000823cc88
😎 Deploy Preview https://deploy-preview-36356--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud

nx-cloud Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

View your CI Pipeline Execution ↗ for commit 64a6e99

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 41m 39s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 3s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 57s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 17s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 5s View ↗

☁️ Nx Cloud last updated this comment at 2026-07-15 12:37:41 UTC

@leosvelperez leosvelperez self-assigned this Jul 15, 2026
@leosvelperez
leosvelperez marked this pull request as ready for review July 15, 2026 12:56
@leosvelperez
leosvelperez requested a review from a team as a code owner July 15, 2026 12:56
@leosvelperez
leosvelperez requested a review from JamesHenry July 15, 2026 12:56
@FrozenPandaz
FrozenPandaz merged commit 99fc3b0 into master Jul 15, 2026
27 checks passed
@FrozenPandaz
FrozenPandaz deleted the fix-migrate-misc-issues branch July 15, 2026 20:22
AgentEnder pushed a commit that referenced this pull request Jul 17, 2026
#36356)

## Current Behavior

A merge conflict during the move to the `./dist/...` build layout left
two Nx core migrations miswired. The
`22-6-0-add-claude-settings-local-to-git-ignore` migration pointed at
`update-17-3-0/update-nxw`, so from 22.6.2 / 22.7.0-beta.2 onward,
workspaces migrating across 22.6.0-rc.0 ran the nx-wrapper update
instead of adding `.claude/settings.local.json` to `.gitignore`. The
`22-6-0-enable-analytics-prompt` entry was dropped entirely, so that
migration stopped shipping after 22.6.1.

## Expected Behavior

The gitignore migration runs its real implementation (version left at
22.6.0-rc.0), and the analytics-prompt migration is wired again at its
original 22.6.0-beta.11.

`assertValidMigrationPaths` now fails when a migration entry-point file
(a top-level `.ts` with a default export under a version dir) is
referenced by no `migrations.json` entry, so a stranded or leftover
migration file is caught in CI. That reverse check surfaced
`update-17-3-0/nx-release-path`, an unwired migration dead since 2023,
which is removed.

## Related Issue(s)

Fixes NXC-4670

<!-- polygraph-session-start -->
---
[View session information
↗](https://app.trypolygraph.com/orgs/6a061dcb561c062131116eca/sessions/fix-migrate-misc-issues-cfee7d13)
<!-- polygraph-session-end -->
FrozenPandaz pushed a commit that referenced this pull request Jul 20, 2026
#36356)

## Current Behavior

A merge conflict during the move to the `./dist/...` build layout left
two Nx core migrations miswired. The
`22-6-0-add-claude-settings-local-to-git-ignore` migration pointed at
`update-17-3-0/update-nxw`, so from 22.6.2 / 22.7.0-beta.2 onward,
workspaces migrating across 22.6.0-rc.0 ran the nx-wrapper update
instead of adding `.claude/settings.local.json` to `.gitignore`. The
`22-6-0-enable-analytics-prompt` entry was dropped entirely, so that
migration stopped shipping after 22.6.1.

## Expected Behavior

The gitignore migration runs its real implementation (version left at
22.6.0-rc.0), and the analytics-prompt migration is wired again at its
original 22.6.0-beta.11.

`assertValidMigrationPaths` now fails when a migration entry-point file
(a top-level `.ts` with a default export under a version dir) is
referenced by no `migrations.json` entry, so a stranded or leftover
migration file is caught in CI. That reverse check surfaced
`update-17-3-0/nx-release-path`, an unwired migration dead since 2023,
which is removed.

## Related Issue(s)

Fixes NXC-4670

<!-- polygraph-session-start -->
---
[View session information
↗](https://app.trypolygraph.com/orgs/6a061dcb561c062131116eca/sessions/fix-migrate-misc-issues-cfee7d13)
<!-- polygraph-session-end -->

(cherry picked from commit 99fc3b0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants