1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix(install): don't attempt to cache specifiers that point to directories (#26369)

Fixes https://github.com/denoland/deno/issues/26162
This commit is contained in:
Nathan Whitaker 2024-10-17 15:25:22 -07:00 committed by GitHub
parent 2435a361c6
commit 50724d014a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 21 additions and 0 deletions

View file

@ -75,6 +75,13 @@ pub async fn cache_top_level_deps(
if entry.key.ends_with('/') && specifier.as_str().ends_with('/') {
continue;
}
if specifier.scheme() == "file" {
if let Ok(path) = specifier.to_file_path() {
if !path.is_file() {
continue;
}
}
}
roots.push(specifier.clone());
}
}

View file

@ -0,0 +1,9 @@
{
"tempDir": true,
"steps": [
{
"args": "install",
"output": ""
}
]
}

View file

@ -0,0 +1,5 @@
{
"imports": {
"@assets": "./src/assets/"
}
}