Skip to content

Test generator, problem_spec_dir(): remove code that walks the path - #460

Merged
glennj merged 1 commit into
exercism:mainfrom
IsaacG:gen.probspec.path
Nov 10, 2026
Merged

glennj merged 1 commit into
exercism:mainfrom
IsaacG:gen.probspec.path

Conversation

@IsaacG

@IsaacG IsaacG commented Nov 9, 2026

Copy link
Copy Markdown
Member

This code checks if the current path is a child of the problem spec repo.
The generator lives in the track repo, which is generally not nested inside the problem spec repo. The prior logic checks the XDG cache path, which is what configlet uses. Contributors ought to be running configlet sync so the path used by the configlet ought to exist and should be reliable. As such, an additional check is not needed.

This code checks if the current path is a child of the problem spec repo.
The generator lives in the track repo, which is generally not nested inside the problem spec repo. The prior logic checks the XDG cache path, which is what `configlet` uses. Contributors ought to be running `configlet sync` so the path used by the configlet ought to exist and should be reliable. As such, an additional check is not needed.
@glennj
glennj merged commit 81c0d94 into exercism:main Nov 10, 2026
6 checks passed
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.

2 participants