Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/mac2nix/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ def generate() -> None:
def validate( # noqa: PLR0913
flake_path: Path,
scan_file: Path,
*,
mac2nix_source: str,
base_vm: str,
vm_user: str,
Expand Down Expand Up @@ -484,6 +485,7 @@ def diff() -> None:
def discover( # noqa: PLR0913
package: str,
package_type: str,
*,
base_vm: str,
vm_user: str,
vm_password: str,
Expand Down
12 changes: 8 additions & 4 deletions src/mac2nix/scan_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ def _sanitize_for_display(text: str) -> str:
_REMEDIATION_HINTS: tuple[tuple[re.Pattern[str], str], ...] = (
(
re.compile(r"Permission denied reading plist \(TCC-protected\)"),
"Grant Full Disk Access to your terminal in System Settings β†’ Privacy & "
"Security β†’ Full Disk Access, then re-run the scan.",
(
"Grant Full Disk Access to your terminal in System Settings β†’ Privacy & "
"Security β†’ Full Disk Access, then re-run the scan."
),
),
(
re.compile(r"Permission denied reading plist \(root-only"),
"This file is owned by root with no read access for other users β€” this is "
"expected macOS behavior, not something Full Disk Access can fix.",
(
"This file is owned by root with no read access for other users β€” this is "
"expected macOS behavior, not something Full Disk Access can fix."
),
),
(
re.compile(r"(?=.*brew)(?=.*(?:timed out|bundle dump))", re.IGNORECASE),
Expand Down
Loading
Loading