From d2477f780630a812bfd65e3987b70c0d309385bb Mon Sep 17 00:00:00 2001 From: David Sherret Date: Sat, 10 Feb 2024 10:02:31 -0500 Subject: fix: cache bust jsr deps on constraint failure (#22372) Removes the `FileFetcher`'s internal cache because I don't believe it's necessary (we already cache this kind of stuff in places like deno_graph or config files in different places). Removing it fixes this bug because this functionality was already implemented in deno_graph and lowers memory usage of the CLI a little bit. --- cli/tests/testdata/jsr/version_not_found/main.out | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tests/testdata/jsr/version_not_found') diff --git a/cli/tests/testdata/jsr/version_not_found/main.out b/cli/tests/testdata/jsr/version_not_found/main.out index 5ebe13c73..6a32b5d81 100644 --- a/cli/tests/testdata/jsr/version_not_found/main.out +++ b/cli/tests/testdata/jsr/version_not_found/main.out @@ -1,4 +1,5 @@ Download http://127.0.0.1:4250/@denotest/deps/meta.json +Download http://127.0.0.1:4250/@denotest/deps/meta.json error: Could not find constraint in the list of versions: @denotest/deps@0.1.4 Specifier: jsr:@denotest/deps@0.1.4/mod.ts at file:///[WILDCARD]/version_not_found/main.ts:1:19 -- cgit v1.2.3