Skip to content

feat: warn if running as root#1063

Open
gshmu wants to merge 1 commit intopyinvoke:mainfrom
gshmu:pr/root-warning
Open

feat: warn if running as root#1063
gshmu wants to merge 1 commit intopyinvoke:mainfrom
gshmu:pr/root-warning

Conversation

@gshmu
Copy link
Copy Markdown

@gshmu gshmu commented Apr 8, 2026

Summary

  • warn when Invoke is executed as the root user
  • explain that root-owned files can cause later I/O or permission errors
  • cover the new behavior with program-level tests

Testing

  • python -m compileall invoke/program.py tests/program.py
  • pytest not available in the current environment

@gshmu gshmu force-pushed the pr/root-warning branch from 8f1a8e0 to 5d8812b Compare April 8, 2026 03:56
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.

1 participant