Repository navigation
test(doctor): assert target paths in the OS separator form - #348
Merged
Merged
Conversation
checkSharedTargetPaths and checkCrossTargetDiscovery print filepath.Clean output, so on Windows a shared pool renders as C:\Users\<user>\.agents\skills. Two fixtures compared those values against slash-form literals, so they failed on Windows even though the diagnosis text is correct on both platforms. Build the expected strings with filepath.FromSlash so the assertions hold on every OS. Both tests now pass in a windows/amd64 run and are unchanged on Linux.
Owner
|
@codex review |
runkids
approved these changes
Oct 3, 2026
This was referenced Oct 3, 2026
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.
What
checkSharedTargetPathsandcheckCrossTargetDiscoveryrender target pools throughfilepath.Clean, so on Windows Doctor printsC:\Users\<user>\.agents\skills. Two fixturescompared those values against slash-form literals, so correct Doctor output failed the suite on
Windows only:
Nothing is wrong with the product text — it is OS-native on purpose, matching how every other
path is printed. The assertions were the platform-dependent part. Part of #344.
Tests
Test-only change: build the expected strings with
filepath.FromSlashso each OS comparesagainst its own form. On a
windows/amd64build of./cmd/skillshare, restricted to theshared-path and cross-discovery tests:
7043ca3a:--- FAIL: TestCheckSharedTargetPaths_Collision,--- FAIL: TestCheckCrossTargetDiscovery_CodexSeesUniversalLinux is unchanged (
ok skillshare/cmd/skillshare).