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

deno upgrade --output: No such file or directory (os error 2) #18466

Closed
GJZwiers opened this issue Mar 27, 2023 · 0 comments · Fixed by #18467 or #18994
Closed

deno upgrade --output: No such file or directory (os error 2) #18466

GJZwiers opened this issue Mar 27, 2023 · 0 comments · Fixed by #18467 or #18994

Comments

@GJZwiers
Copy link
Contributor

GJZwiers commented Mar 27, 2023

deno 1.32.1+101abf3:

cd /tmp
mkdir foo
deno upgrade --version 1.11.5 --output foo/deno
error: No such file or directory (os error 2)

deno 1.32.1:

deno upgrade --version 1.11.5 --output foo/deno
Downloading https://github.com/denoland/deno/releases/download/v1.11.5/deno-x86_64-unknown-linux-gnu.zip
Deno is upgrading to version 1.11.5
Archive:  /tmp/.tmp2QmbJs/deno.zip
  inflating: deno                    
Upgraded successfully
Release notes: https://github.com/denoland/deno/releases/tag/v1.11.5
Blog post: https://deno.com/blog/v1.11

Issue seems to be that Deno is calling std::fs::metadata on the output exe instead of the current exe since 0742ea1, but that file has not been made yet at that point.

let metadata = fs::metadata(output_exe_path)?;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant