R
Railwayβ€’13mo ago
NullBitMe

Can't install latest version of Deno Nix package

I can't seem to get the latest version (1.38) of deno to be used in my railway service. I thought this could have been an issue with the Nix cache however setting NIXPACKS_NO_CACHE doesn't seem to change anything. My service is stuck using 1.36. Is there anything I can do to fix this beyond recreating the service?
8 Replies
Percy
Percyβ€’13mo ago
Project ID: f9f4af6e-6ebb-445e-a8f0-388800708386
NullBitMe
NullBitMeOPβ€’13mo ago
f9f4af6e-6ebb-445e-a8f0-388800708386
Brody
Brodyβ€’13mo ago
nixpacks is installing whatever version of deno is in the current archive, to use a specific version you can specify the archive to use, create a nixpacks.toml file in your project with this in it
[phases.setup]
nixpkgsArchive = '17ba61f386fd731d9b869ddf37ee2f7918c34c18'
[phases.setup]
nixpkgsArchive = '17ba61f386fd731d9b869ddf37ee2f7918c34c18'
reference: https://github.com/NixOS/nixpkgs/commit/17ba61f386fd731d9b869ddf37ee2f7918c34c18
NullBitMe
NullBitMeOPβ€’13mo ago
I'll give this a try thank you! I'm getting an error during the build using that archive:
#10 27.09 created 3 symlinks in user environment

#10 27.12 building '/nix/store/imn6y9fcnp7rii28v16ajgflxp8cgh7f-user-environment.drv'...



#10 27.15 error: Unable to build profile. There is a conflict for the following files:

#10 27.15

#10 27.15 /nix/store/4ky0adziza8yy3xpq97jp17hqdgrgi60-deno-1.36.0/share/bash-completion/completions/deno.bash

#10 27.15 /nix/store/ryz4kdlbraqachmbz6gcc4nfyk3lw5ws-17ba61f386fd731d9b869ddf37ee2f7918c34c18-env/share/bash-completion/completions/deno.bash

#10 27.16 error: builder for '/nix/store/imn6y9fcnp7rii28v16ajgflxp8cgh7f-user-environment.drv' failed with exit code 1

#10 27.22 error: building '/nix/store/imn6y9fcnp7rii28v16ajgflxp8cgh7f-user-environment.drv' failed



#10 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100
#10 27.09 created 3 symlinks in user environment

#10 27.12 building '/nix/store/imn6y9fcnp7rii28v16ajgflxp8cgh7f-user-environment.drv'...



#10 27.15 error: Unable to build profile. There is a conflict for the following files:

#10 27.15

#10 27.15 /nix/store/4ky0adziza8yy3xpq97jp17hqdgrgi60-deno-1.36.0/share/bash-completion/completions/deno.bash

#10 27.15 /nix/store/ryz4kdlbraqachmbz6gcc4nfyk3lw5ws-17ba61f386fd731d9b869ddf37ee2f7918c34c18-env/share/bash-completion/completions/deno.bash

#10 27.16 error: builder for '/nix/store/imn6y9fcnp7rii28v16ajgflxp8cgh7f-user-environment.drv' failed with exit code 1

#10 27.22 error: building '/nix/store/imn6y9fcnp7rii28v16ajgflxp8cgh7f-user-environment.drv' failed



#10 ERROR: process "/bin/bash -ol pipefail -c nix-env -if .nixpacks/nixpkgs-5148520bfab61f99fd25fb9ff7bfbb50dad3c9db.nix && nix-collect-garbage -d" did not complete successfully: exit code: 100
Brody
Brodyβ€’13mo ago
looks like you will have to move to a dockerfile based build
NullBitMe
NullBitMeOPβ€’13mo ago
😭 ill start moving it over, thank you for your help!
Brody
Brodyβ€’13mo ago
imo dockerfile is better for this anyway, gives you complete control, no need for github comment hashes theres even a 1.38.1 image https://hub.docker.com/r/denoland/deno/tags so even newer than what is available from a nix package @Angelo
angelo
angeloβ€’13mo ago
πŸ‘‹
Want results from more Discord servers?
Add your server