Skip to content

[BUG] watch does not work when run not as root #98

@wilbowma

Description

@wilbowma

Environment

  • OS: Linux distribution / Windows version

Linux 5.17.6-1-MANJARO

  • Dotter version: Find out using `dotter -V

Dotter 0.12.10

  • Additional relevant information

Description

The watch subcommand fails when not run as root.

Reproduction

> touch /tmp/global.toml
> dotter -g /tmp/global.toml -d watch
[ERROR] Failed to watch repository
Caused by:
    run watch deploy
    I/O error: Permission denied (os error 13)

> sudo dotter -g /tmp/global.toml -d watch
[sudo] password for : 
[ WARN] It is not recommended to run Dotter as root, since the cache files and all files not marked with an `owner` field will default to being owned by root.
If you're truly logged in as root, it is safe to ignore this message.
Otherwise, run `dotter undeploy` as root, remove cache.toml and cache/ folders, then use Dotter as a regular user.
[Dotter] Deploying...

Expected behavior

watch should work, and not require root privileges.

Actual behavior

watch does not work at all when run not as root.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions