cargo-outdated icon indicating copy to clipboard operation
cargo-outdated copied to clipboard

Fails if Cargo.lock or Cargo.toml are read-only

Open sendittothenewts opened this issue 2 months ago • 0 comments

To wit:

$ chmod -w Cargo.lock; cargo outdated
error: failed to write /tmp/cargo-outdatedv46WLk/Cargo.lock

Caused by:
  failed to open: /tmp/cargo-outdatedv46WLk/Cargo.lock

Caused by:
  Permission denied (os error 13)
$ chmod -w Cargo.toml; cargo outdated
error: Permission denied (os error 13)

The error message is particularly uninformative when Cargo.toml is read-only.

This issue also occurs in workspaces if any of the members' Cargo.toml is read-only.

sendittothenewts avatar Nov 06 '25 02:11 sendittothenewts