Repository navigation
Move the dependency rows, the Python and dotnet paths and the installs into a DependencyStore - #469
Merged
Conversation
Merged
5 of 6 tasks
v0lumehi
force-pushed
the
v0lumehi/dependency-store
branch
from
November 2, 2026 12:47
03609a9 to
07fa7e4
Compare
…s into a DependencyStore (#387)
v0lumehi
force-pushed
the
v0lumehi/dependency-store
branch
from
November 2, 2026 16:00
e341109 to
f77fb6b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #467 (stack #459), retarget to main after the ones below merge.
Part of #387, step 7 (dependencies).
Fix or feature
A maintainer's step of the agreed plan in #387. It changes no behavior.
What and why
BuildModelstill owned the dependency rows, the Python and dotnet paths and the installs. This moves them into aDependencyStoreinNXModel, asAppUpdateStore,RepoStoreandEngineSyncStoredid.DependencyStore:deps,checked, the expanded list,pythonPathanddotnetPath,check(),install(_:)with the failure kept on the row, the note after a failed install and the Xcode row that opens the App Store (as a closure).PythonLocationthatEngineSyncStorereads.BuildModelis no longer one.DependencyStatusis the narrow protocol the build reads (checked,allPresent,pythonPath,dotnetPath,deps).BuildModelreads the store only through it.NXCoregotDependencyCheck(the list of rows, the Metal row, the dotnet install command,deps-check.txt, the bash command and environment of an install) andMetalPin.ContentView.swiftgoes from 2228 to 2073 lines, and its entry inSourceSizeTestsis lowered.What stays in the app target:
needsIOSPlatformreadsOnboardingDefaults, so it goes with the onboarding. The store gets it as a closure.BuildModelkeeps read-onlypythonPath,dotnetPath,depsCheckedandallDepsPresent(throughDependencyStatus) and forwards the store'sobjectWillChange, because the build code andcanBuildread them. They go with the build store.fixBuildFailureandfixBusycall the store. They go with the build store.model.dependencies.depsand so on,DependencyCheck.metalDep,dependencies.detail(of:).Checked
cd frontend && swift testthree times, 816 tests in NXModelTests (81), NXCoreTests (98) and NX2AppleTests (637), 0 failures, no flaky test. The previous step had 803.DependencyStoreTestsadds 13. The frontend-qt tests pass (214, 14 skipped).Toolchain.makeVenvreads and writes the real venv folder. The installs in the new tests use a fake runner.Screenshots
None, no visible change.
Scope
dm/,scripts/,docs/,ref/) is added to the repository