Skip to content

fix: cargo permission denied#135

Merged
JimMoen merged 3 commits intomainfrom
fix-cargo-permission-denied
Aug 1, 2025
Merged

fix: cargo permission denied#135
JimMoen merged 3 commits intomainfrom
fix-cargo-permission-denied

Conversation

@JimMoen
Copy link
Copy Markdown
Member

@JimMoen JimMoen commented Aug 1, 2025

...
sh: 1: exec: cargo: Permission denied
===> Hook for compile failed!
...

But:

$ dxcit -u root:root erlang bash
root@erlang:/emqx# ls /root/.cargo/bin/cargo
/root/.cargo/bin/cargo

id
id previously approved these changes Aug 1, 2025
@JimMoen JimMoen force-pushed the fix-cargo-permission-denied branch 2 times, most recently from e9f0eb1 to 4dc5dd3 Compare August 1, 2025 09:41
- rustup should be existed in ALL images
  (by install rustup with args: `--default-toolchain none`)
- rustc and cargo should be existed in OTP 27 images
  and NOT in non-OTP 27 images
@JimMoen JimMoen force-pushed the fix-cargo-permission-denied branch from 4dc5dd3 to 77037d9 Compare August 1, 2025 10:06
@JimMoen
Copy link
Copy Markdown
Member Author

JimMoen commented Aug 1, 2025

cargo, rustc commands are linked to rustup.
so use rustup toolchain list to check the real actived toolchain

@JimMoen JimMoen merged commit 8335fcf into main Aug 1, 2025
86 checks passed
@JimMoen JimMoen deleted the fix-cargo-permission-denied branch August 2, 2025 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.

2 participants