Unverified Commit 50d5a0a7 authored by Niklas Mischkulnig's avatar Niklas Mischkulnig Committed by GitHub

Turbopack: use bail in track_glob_internal (#83350)

Eventual consistency strikes again (?)
parent 2c487e1c
...@@ -197,11 +197,12 @@ async fn track_glob_internal( ...@@ -197,11 +197,12 @@ async fn track_glob_internal(
reads.push(fs.read(path.clone())) reads.push(fs.read(path.clone()))
} }
} }
DirectoryEntry::Symlink(symlink_path) => unreachable!( DirectoryEntry::Symlink(symlink_path) => bail!(
"resolve_symlink_safely() should have resolved all symlinks, but found \ "resolve_symlink_safely() should have resolved all symlinks, but found \
unresolved symlink at path: '{}'. Found path: '{}'. Please report this \ unresolved symlink at path: '{}'. Found path: '{}'. Please report this \
as a bug.", as a bug.",
entry_path, symlink_path entry_path,
symlink_path
), ),
DirectoryEntry::Other(path) => { DirectoryEntry::Other(path) => {
if glob_value.matches(&entry_path) { if glob_value.matches(&entry_path) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment