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
Was looking at using this to package a Fresh website I wrote. Initially I attempted to package it via the example flake. Once that failed, I tried the example but got a hash error on a dependency.
warning: Git tree '/home/haydengray/Documents/nix-deno' is dirty
these 4 derivations will be built:
/nix/store/1srlqvwk7iwwlsl57llm4d6kkg012af5-esm.sh--preact-signals-core-1.5.0.drv
/nix/store/ki376hd0vhz5kd87sfh627hc7ac5rbdq-deno_prefetch.drv
/nix/store/ans55jdaf81yfdnx4wi2lsr80x5ka503-deno_dir.drv
/nix/store/6n3pdxl8wx2hri0h9526zfs158plwqfp-example-executable.drv
building '/nix/store/1srlqvwk7iwwlsl57llm4d6kkg012af5-esm.sh--preact-signals-core-1.5.0.drv'...
error: hash mismatch in fixed-output derivation '/nix/store/1srlqvwk7iwwlsl57llm4d6kkg012af5-esm.sh--preact-signals-core-1.5.0.drv':
specified: sha256-XbfUHgodUglgIZHQXM5GcwgBvqGLTDJAyaOfHUIK8zs=
got: sha256-bG0ToK4/weMvfdheMnOBs9zoLXcOinGP4pfuXwLHsv8=
error: 1 dependencies of derivation '/nix/store/ki376hd0vhz5kd87sfh627hc7ac5rbdq-deno_prefetch.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ans55jdaf81yfdnx4wi2lsr80x5ka503-deno_dir.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6n3pdxl8wx2hri0h9526zfs158plwqfp-example-executable.drv' failed to build
After updating the lockfile using the latest version of Deno (2.1.4 at this time) I saw that npm would have issues because of Deno changing to lockfile v4. To get around this, I updated the source with:
(if denoLock.version == 3 then denoLock.packages.npm or { } else if denoLock.version == 4 then denoLock.npm or { } else throw "unsupported lockfile version")
After doing this, the npm deps worked, but I get this error:
warning: Git tree '/home/haydengray/Documents/nix-deno' is dirty
this derivation will be built:
/nix/store/alsygs6wpj068b54bck704sxn5q21as1-example-executable.drv
building '/nix/store/alsygs6wpj068b54bck704sxn5q21as1-example-executable.drv'...
error: builder for '/nix/store/alsygs6wpj068b54bck704sxn5q21as1-example-executable.drv' failed with exit code 1;
last 18 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/hdpik6d137ir1bdszdlxfbac3il50wdh-fresh
> source root is fresh
> Executing denoRestoreCacheHook
> Finished denoRestoreCacheHook
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> no configure script, doing nothing
> Running phase: buildPhase
> Download https://deno.land/[email protected]/dotenv/load.ts
> Download https://deno.land/x/[email protected]/server.ts
> Download https://esm.sh/[email protected]/jsx-runtime
> Download https://deno.land/x/[email protected]/runtime.ts
> Download https://esm.sh/*@preact/[email protected]
> Download https://esm.sh/[email protected]
> error: Import 'https://deno.land/[email protected]/dotenv/load.ts' failed: error sending request for url (https://deno.land/[email protected]/dotenv/load.ts): client error (Connect): dns error: failed to lookup address information: Temporary failure in name resolution: failed to lookup address information: Temporary failure in name resolution
> at file:///build/fresh/main.ts:7:8
For full logs, run 'nix log /nix/store/alsygs6wpj068b54bck704sxn5q21as1-example-executable.drv'.
When looking in the generated lockfile however, this is listed under remotes and I also see this in the nix store: /nix/store/ikbva52xykkwfnrfny0icy2da762qhhd-deno.land-std-0.208.0-dotenv-load.ts
Is there anything I am missing?
The text was updated successfully, but these errors were encountered:
Was looking at using this to package a Fresh website I wrote. Initially I attempted to package it via the example flake. Once that failed, I tried the example but got a hash error on a dependency.
After updating the lockfile using the latest version of Deno (
2.1.4
at this time) I saw thatnpm
would have issues because of Deno changing to lockfilev4
. To get around this, I updated the source with:After doing this, the npm deps worked, but I get this error:
When looking in the generated lockfile however, this is listed under remotes and I also see this in the nix store:
/nix/store/ikbva52xykkwfnrfny0icy2da762qhhd-deno.land-std-0.208.0-dotenv-load.ts
Is there anything I am missing?
The text was updated successfully, but these errors were encountered: