Skip to content

Fix sync-design-system.ps1 default source path - #61

Merged
malinfossum merged 1 commit into
mainfrom
fix/sync-script-source-path
Aug 31, 2026
Merged

malinfossum merged 1 commit into
mainfrom
fix/sync-script-source-path

Conversation

@malinfossum

Copy link
Copy Markdown
Member

What

The default -Source in sync-design-system.ps1 pointed at C:\Users\Nugget\Documents\Development\workbench\libraries\design-system. That path does not exist — workbench lives under Documents\Development\GitHub\repos\workbench. A run without an explicit -Source died on the guard: "Canonical design-system not found".

Found during the 3.2.0 design-system sync (#60), which only worked because the corrected path was sitting uncommitted in the working tree.

Changes

  • $Source default repointed at GitHub\repos\workbench\libraries\design-system
  • "canonical" reworded to "source of truth" in the surrounding comments, matching the sweep done upstream in workbench

Verification

Test-Path on the new default returns True from PowerShell — the same check the script's guard uses. Git Bash reports the old path as traversable, so PowerShell's view is the one that counts here.

No C# touched; the script is not part of the build.

Not in scope

Line 26's error message still reads "Canonical design-system not found" — the one spot the reword missed. Left alone deliberately; happy to fold it in if you'd rather it went with this.

The default -Source pointed at Documents\Development\workbench\libraries\
design-system, which does not exist. Workbench lives under GitHub\repos\.
A plain run without -Source died on "design-system not found".

Also reword "canonical" to "source of truth" in the surrounding comments.
@malinfossum
malinfossum merged commit e6bda61 into main Aug 31, 2026
1 check passed
@malinfossum
malinfossum deleted the fix/sync-script-source-path branch August 31, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant