You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ece2f4d
Browse filesBrowse the repository at this point in the historyBrowse files
if link "$multi/apps/web"&& link "$multi/apps/api";then pass "link succeeds for two projects of one worktree";else fail "link of two subprojects failed: $(tail -5 "$WORK/out")";fi
149
+
unlink_project "$multi/apps/web"
150
+
check "unlinking one subproject removes its own .npmrc"'[ ! -f "$multi/apps/web/.npmrc" ]'
151
+
check "unlinking one subproject drops its own exclude entry"'! grep -qxF apps/web/.npmrc "$mcommon/info/exclude"'
152
+
check "the other subproject's .npmrc is still ignored by git"'git -C "$multi" check-ignore -q -- apps/api/.npmrc'
153
+
check "git status shows no .npmrc after one subproject is unlinked"'! git -C "$multi" status --porcelain | grep -q "\.npmrc"'
154
+
unlink_project "$multi/apps/api"
155
+
check "unlinking the last subproject removes the managed block"'! grep -q "metaobjects prerelease (managed)" "$mcommon/info/exclude"'
156
+
136
157
# The assertion: an .npmrc git does not ignore makes link fail.
if link "$poly";then pass "link succeeds in a polyglot repository";else fail "polyglot link failed: $(tail -5 "$WORK/out")";fi
251
273
check "a manifest with no tool version reports that nothing was pinned"'grep -q "ports/csharp/.config/dotnet-tools.json names MetaObjects.Cli but no version for it was found: nothing pinned" "$WORK/out" && ! grep -q "repinned MetaObjects.Cli to 1.1.0-rc.9 in ports/csharp/" "$WORK/out"'
252
274
check "a repinned manifest is reported as repinned"'grep -q "repinned MetaObjects.Cli to 1.1.0-rc.9 in .config/dotnet-tools.json" "$WORK/out"'
275
+
check "link writes a NuGet.config at the root"'grep -qF "metaobjects-prerelease" "$poly/NuGet.config"'
253
276
check "the nested python project is linked"'grep -q "metaobjects-prerelease" "$poly/ports/python/pyproject.toml"'
254
277
check "the nested python project is repinned"'grep -q "metaobjects==1.1.0rc9" "$poly/ports/python/pyproject.toml"'
0 commit comments