-
Notifications
You must be signed in to change notification settings - Fork 330
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
quarto run
fails because of --cached-only
and dependency version unfound
#11219
Comments
Confirmed fixed by @cderv in the latest 1.6 prereleases. |
@cscheid I am reopening because I found this is not totally fixed while I investigated shinylive change to make for new Deno run deps (working on posit-dev/shinylive#185 with @georgestagg). Sorry to have missed that a few weeks ago.. I am not sure what change - I was pretty sure to have tested the initial fix ! So take the same import { readLines } from "stdlib/io"; So copy it in a clean directory (I mean outside of quarto-cli project) and using a bundled version (not dev version) it still errors
This is because of the dependency tree.
So we probably need to check the dependency tree of what we do import for cached only to run. |
In fact we do have two versions of And, Though the |
run - remove --cached-only by default, see #11219
I just tested the 1.6.37 release, and this works there. Unfortunately, the first time you run a project script that imports (some) files from the standard library you might see output like this:
Further runs, however, will use the recently-downloaded files from the cache. |
@cscheid This happens only with our bundled version where we activate
--cached-only
. This is why our test is passing, especiallyquarto-cli/tests/smoke/run/stdlib-run-version.test.ts
Lines 1 to 24 in 464c18c
Trying to run the file using last prerelease I get
My understanding is the following
We are using bundling versions and it seems we do bundle
0.224.8
quarto-cli/src/dev_import_map.json
Line 19 in 464c18c
However the spec for
stdlib/io
used for loading the dep in aquarto run
script isquarto-cli/src/resources/deno_std/run_import_map.json
Line 30 in 464c18c
Using the
^
means that0.224.9
is valid and it seems Deno wants do use it, but can't find it in the cache as expected.Maybe I don't get it right, but it seems that Deno may resolve the specifier, unrelated to the cache, instead of looking for a version in cache that respect
^0.224.0
🤔I did the test with
deno run
, using deno binary bundled in quarto and using this fileand in a clean cache (I deleted the all Deno cache directory)
--cached-only
download the dependencyjsr:@std/io@^0.224.0
in the fileThis is directly impacting tools like shinylive which needs to be updated anyway to be working with Quarto 1.6
This is blocking quarto-ext/shinylive#65
The text was updated successfully, but these errors were encountered: