<p dir="auto">MACHINE: WSL 2 (Ubuntu 20.04)<br>
OS: Ubuntu 20.04</p>
<p dir="auto">Current version: 1.2.3</p>
<p dir="auto">What's wrong</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dev@Raspberry:~$ deno upgrade
Checking for latest version
downloading https://github.com/denoland/deno/releases/download/v1.3.0/deno-x86_64-unknown-linux-gnu.zip
Version has been found
Deno is upgrading to version 1.3.0
downloading https://github-production-release-asset-2e65be.s3.amazonaws.com/133442384/c3e0d480-dd82-11ea-837c-81e79e8669bd?X-Amz-Algorithm=AWS4-HMAC-SHA256&amp;X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200817%2Fus-east-1%2Fs3%2Faws4_request&amp;X-Amz-Date=20200817T130905Z&amp;X-Amz-Expires=300&amp;X-Amz-Signature=649fcd47675f065db1f1c92b223489d8645ec52e03f3c566d20bc9a116a2ad22&amp;X-Amz-SignedHeaders=host&amp;actor_id=0&amp;repo_id=133442384&amp;response-content-disposition=attachment%3B%20filename%3Ddeno-x86_64-unknown-linux-gnu.zip&amp;response-content-type=application%2Foctet-stream
Version has been found
Deno is upgrading to version 1.3.0
error: No such file or directory (os error 2)"><pre class="notranslate">dev@Raspberry:<span class="pl-k">~</span>$ deno upgrade
Checking <span class="pl-k">for</span> latest version
downloading https://github.com/denoland/deno/releases/download/v1.3.0/deno-x86_64-unknown-linux-gnu.zip
Version has been found
Deno is upgrading to version 1.3.0
downloading https://github-production-release-asset-2e65be.s3.amazonaws.com/133442384/c3e0d480-dd82-11ea-837c-81e79e8669bd<span class="pl-k">?</span>X-Amz-Algorithm=AWS4-HMAC-SHA256<span class="pl-k">&amp;</span>X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200817%2Fus-east-1%2Fs3%2Faws4_request<span class="pl-k">&amp;</span>X-Amz-Date=20200817T130905Z<span class="pl-k">&amp;</span>X-Amz-Expires=300<span class="pl-k">&amp;</span>X-Amz-Signature=649fcd47675f065db1f1c92b223489d8645ec52e03f3c566d20bc9a116a2ad22<span class="pl-k">&amp;</span>X-Amz-SignedHeaders=host<span class="pl-k">&amp;</span>actor_id=0<span class="pl-k">&amp;</span>repo_id=133442384<span class="pl-k">&amp;</span>response-content-disposition=attachment%3B%20filename%3Ddeno-x86_64-unknown-linux-gnu.zip<span class="pl-k">&amp;</span>response-content-type=application%2Foctet-stream
Version has been found
Deno is upgrading to version 1.3.0
error: No such file or directory (os error 2)</pre></div>
<p dir="auto">What's expected.<br>
Succesful upgrade.</p>
<p dir="auto">Reproc:</p>
<ol dir="auto">
<li>Create a script and write <code class="notranslate">console.log("test")</code></li>
<li>Run <code class="notranslate">deno compile test.ts</code> (this will work)</li>
<li>Run <code class="notranslate">deno compile test.ts</code> (this will fail)</li>
</ol>
<p dir="auto">Notes:</p>
<ul dir="auto">
<li>Deleting the file it produces changes nothing</li>
<li>Changing the file in any way between doing 2 and 3 causes it to succeed</li>
</ul>
<p dir="auto">Terminal log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ioB:Desktop$ echo &quot;console.log('test')&quot; &gt; test1.ts # Create the file
ioB:Desktop$ deno compile test1.ts # Compile the file (success)
Check file:///Users/linolevan/Desktop/test1.ts
Compile file:///Users/linolevan/Desktop/test1.ts
Emit test1
ioB:Desktop$ deno compile test1.ts # Compile the file (fail)

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.25.0
Args: [&quot;deno&quot;, &quot;compile&quot;, &quot;test1.ts&quot;]

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/eszip-0.25.0/src/v2.rs:512:60
stack backtrace:
   0:        0x1017f4d19 - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::hf40d0caef3ef003c
   1:        0x100dca2da - core::fmt::write::h7fafa4d8eb87db06
   2:        0x1017d8988 - std::io::Write::write_fmt::he2d3473829bfad58
   3:        0x1017db0b8 - std::panicking::default_hook::{{closure}}::h2e54ef15ea4323a2
   4:        0x1017dada7 - std::panicking::default_hook::ha4f40c368619ac79
   5:        0x100d59943 - deno::setup_panic_hook::{{closure}}::he0294168cb0c0d8f
   6:        0x1017dbafb - std::panicking::rust_panic_with_hook::hd7ebe5d3a09e3b75
   7:        0x1017f50cf - std::panicking::begin_panic_handler::{{closure}}::h53bdf79c49b104e9
   8:        0x1017f5069 - std::sys_common::backtrace::__rust_end_short_backtrace::h73d9d520ad1d0732
   9:        0x1017db4e5 - _rust_begin_unwind
  10:        0x102baf9e3 - core::panicking::panic_fmt::he3416ad8dabf8a89
  11:        0x102bafaa7 - core::panicking::panic::h2675996f18b77b08
  12:        0x10157fa8c - eszip::v2::EszipV2::from_graph::visit_module::hf407b54cbb136c92
  13:        0x100d26734 - deno::compile_command::{{closure}}::h70b6120ee7456569
  14:        0x100d24c66 - &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll::h622265d96264ea8f
  15:        0x1009f4c17 - deno::main::{{closure}}::hfd220545647f9818
  16:        0x1009e7ae1 - &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll::h808b0be9b3a09bb3
  17:        0x1009e4ed8 - deno_runtime::tokio_util::run_local::h3f8035d1fbda0e5e
  18:        0x1009e4336 - deno::main::hd31f23f32394030f
  19:        0x1009e3c5c - std::sys_common::backtrace::__rust_begin_short_backtrace::h8e206b1e2808c429
  20:        0x1009e3ee6 - _main"><pre class="notranslate"><code class="notranslate">ioB:Desktop$ echo "console.log('test')" &gt; test1.ts # Create the file
ioB:Desktop$ deno compile test1.ts # Compile the file (success)
Check file:///Users/linolevan/Desktop/test1.ts
Compile file:///Users/linolevan/Desktop/test1.ts
Emit test1
ioB:Desktop$ deno compile test1.ts # Compile the file (fail)

============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: macos x86_64
Version: 1.25.0
Args: ["deno", "compile", "test1.ts"]

thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/brew/Library/Caches/Homebrew/cargo_cache/registry/src/github.com-1ecc6299db9ec823/eszip-0.25.0/src/v2.rs:512:60
stack backtrace:
   0:        0x1017f4d19 - &lt;std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display&gt;::fmt::hf40d0caef3ef003c
   1:        0x100dca2da - core::fmt::write::h7fafa4d8eb87db06
   2:        0x1017d8988 - std::io::Write::write_fmt::he2d3473829bfad58
   3:        0x1017db0b8 - std::panicking::default_hook::{{closure}}::h2e54ef15ea4323a2
   4:        0x1017dada7 - std::panicking::default_hook::ha4f40c368619ac79
   5:        0x100d59943 - deno::setup_panic_hook::{{closure}}::he0294168cb0c0d8f
   6:        0x1017dbafb - std::panicking::rust_panic_with_hook::hd7ebe5d3a09e3b75
   7:        0x1017f50cf - std::panicking::begin_panic_handler::{{closure}}::h53bdf79c49b104e9
   8:        0x1017f5069 - std::sys_common::backtrace::__rust_end_short_backtrace::h73d9d520ad1d0732
   9:        0x1017db4e5 - _rust_begin_unwind
  10:        0x102baf9e3 - core::panicking::panic_fmt::he3416ad8dabf8a89
  11:        0x102bafaa7 - core::panicking::panic::h2675996f18b77b08
  12:        0x10157fa8c - eszip::v2::EszipV2::from_graph::visit_module::hf407b54cbb136c92
  13:        0x100d26734 - deno::compile_command::{{closure}}::h70b6120ee7456569
  14:        0x100d24c66 - &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll::h622265d96264ea8f
  15:        0x1009f4c17 - deno::main::{{closure}}::hfd220545647f9818
  16:        0x1009e7ae1 - &lt;core::future::from_generator::GenFuture&lt;T&gt; as core::future::future::Future&gt;::poll::h808b0be9b3a09bb3
  17:        0x1009e4ed8 - deno_runtime::tokio_util::run_local::h3f8035d1fbda0e5e
  18:        0x1009e4336 - deno::main::hd31f23f32394030f
  19:        0x1009e3c5c - std::sys_common::backtrace::__rust_begin_short_backtrace::h8e206b1e2808c429
  20:        0x1009e3ee6 - _main
</code></pre></div>