Repository navigation
CLI: victory config shows the data folder and checks it is outside the repo - #277
Closed
SkippySteve wants to merge 1 commit into
Closed
SkippySteve wants to merge 1 commit into
SkippySteve wants to merge 1 commit into
Conversation
…the repo The data folder (saves, settings, crashes.log) is resolved by Config like the cache folder, but `victory config` neither printed it nor ran the outside-the-repository check on it, so a VICTORY_DATA_DIR or [paths].data_dir pointing into the source tree went unreported.
Author
|
Superseded by #241, which now carries this commit ( |
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.
Configresolves a data folder (saves, settings,crashes.log;VICTORY_DATA_DIRor[paths].data_dir) the same way as the cache folder. The README points users to it, butvictory configneither printed it nor ran the outside-the-repository check on it. A data folder pointing into the source tree went unreported, even though it is the folder that receives title-written files.show_confignow prints adata_dirline and includes the data folder in theensure_outside_repoloop, alongside the game, test-title and cache paths. No other behaviour changes.Testing
Linux, with #235 applied so
apps/victorybuilds there:Before this change, the same command printed no
data_dirline and no violation. With both folders outside the repo, it prints both lines and no violation.cargo fmt --check -p victory: cleancargo clippy -p victory --all-targets: no new warningscargo test -p victory: passes