Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kittycad update is broken on Linux #461

Closed
lf94 opened this issue Dec 14, 2023 · 1 comment · Fixed by #462
Closed

kittycad update is broken on Linux #461

lf94 opened this issue Dec 14, 2023 · 1 comment · Fixed by #462
Assignees

Comments

@lf94
Copy link
Contributor

lf94 commented Dec 14, 2023

@greg-kcio encountered a bug when trying to update on Ubuntu. The error is:

No such file or directory (os error 2)

I've attached the strace, but it points to some weird reading of a symlink to the executable itself.

Quickly searching the code, I'm pretty sure it's this line:

// src/cmd_update.rs:30
let current_binary_path = std::env::current_exe()?;

strace.txt

I get the same error on Arch Linux.

@lf94 lf94 self-assigned this Dec 14, 2023
@lf94
Copy link
Contributor Author

lf94 commented Dec 14, 2023

Well I wasn't too far off: issue is actually:

// src/cmd_update.rs:15
if crate::update::is_under_homebrew()? {

Which I've further narrowed to:

let output = std::process::Command::new("brew").args(vec!["--prefix"]).output()?;

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 a pull request may close this issue.

1 participant