You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this issue while I was trying to update typst-preview to 0.10.7. In this commit, the author changed the dependency type of the local package typst-dom from file to link:
console.info(`ignoring lockfile entry "${split[0]}" which points at path "${split[1]}"`)
return
}elseif(split.length>2){
thrownewError(`The lockfile entry key "${pkg.key}" contains "${fileMarker}" more than once. Processing is not implemented.`)
}
if(pkg.resolved===undefined){
thrownewError(`The lockfile entry with key "${pkg.key}" cannot be downloaded because it is missing the "resolved" attribute, which should contain the URL to download from. The lockfile might be invalid.`)
error: builder for '/nix/store/skvlzybc5518pngplb4ar0yjw6y4zrdi-offline.drv' failed with exit code 1;
last 10 log lines:
> downloading https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz
> downloading https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz
> Error: The lockfile entry with key "typst-dom@link:../typst-dom" cannot be downloaded because it is missing the "resolved" attribute, which should contain the URL to download from. The lockfile might be invalid.
> at downloadPkg (/nix/store/nj12l3mc3jl02lf0fb9zfq0ckgdgh2xn-prefetch-yarn-deps/libexec/index.js:101:9)
> at /nix/store/nj12l3mc3jl02lf0fb9zfq0ckgdgh2xn-prefetch-yarn-deps/libexec/index.js:145:32
> at worker (/nix/store/nj12l3mc3jl02lf0fb9zfq0ckgdgh2xn-prefetch-yarn-deps/libexec/index.js:130:47)
> at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
> at async Promise.all (index 1)
> at async prefetchYarnDeps (/nix/store/nj12l3mc3jl02lf0fb9zfq0ckgdgh2xn-prefetch-yarn-deps/libexec/index.js:143:2)
> at async main (/nix/store/nj12l3mc3jl02lf0fb9zfq0ckgdgh2xn-prefetch-yarn-deps/libexec/index.js:187:3)
For full logs, run 'nix log /nix/store/skvlzybc5518pngplb4ar0yjw6y4zrdi-offline.drv'.
IIUC, we should also check and skip for downloading if the path in an lockentry is a link.
Describe the bug
I found this issue while I was trying to update
typst-preview
to 0.10.7. In this commit, the author changed the dependency type of the local packagetypst-dom
fromfile
tolink
:with the follow changing in the lock file:
However, it seems that
fetchYarnDeps
only skips for downloading forfile
:nixpkgs/pkgs/build-support/node/fetch-yarn-deps/index.js
Lines 90 to 126 in c7a9d44
And building the following drv:
would fail with:
IIUC, we should also check and skip for downloading if the path in an lockentry is a link.
Notify maintainers
@lorenzleutgeb
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 6.1.73, NixOS, 24.05 (Uakari), 24.05.20240117.842d9d8
yes
yes
nix-env (Nix) 2.18.1
/nix/store/gyjzpkp0g6xa2rj105nbgm7cki1d682m-wcidiyklj0nrljlz5m3qlkvhv8f2ddv8-source
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: