Fail victory config on policy violations #1552

Manually merged
github merged 1 commit from github-bot/gh-1552 into main 2026-11-29 08:22:04 +00:00 AGit
Owner

@⁠Gauss999 on GitHub · 2026-11-28 21:35 UTC · original
Gauss999:patch-6 → main · +50 −9 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC

Summary

  • Preserve the informative configuration output and print every ensure_outside_repo policy violation.
  • Return an anyhow error after all violations are reported so victory config exits nonzero for invalid configured paths.
  • Extract a small reporting helper and add focused unit tests for multiple violations and valid outside paths.

Tests

  • Not run locally: this change was made in the GitHub web editor, with no local build or test run available.
  • CI is awaiting maintainer approval.
**@⁠Gauss999** on GitHub · 2026-11-28 21:35 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1552) `Gauss999:patch-6` → `main` · +50 −9 · 1 files · 1 commits · merged 2026-11-29 08:16 UTC ## Summary - Preserve the informative configuration output and print every `ensure_outside_repo` policy violation. - Return an `anyhow` error after all violations are reported so `victory config` exits nonzero for invalid configured paths. - Extract a small reporting helper and add focused unit tests for multiple violations and valid outside paths. ## Tests - Not run locally: this change was made in the GitHub web editor, with no local build or test run available. - CI is awaiting maintainer approval.
Report every invalid configured path before returning an error, and cover the helper with unit tests.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 21:37:15 +00:00
github manually merged commit 3ea030d195 into main 2026-11-29 08:22:04 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1552
No description provided.