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
The fastly compute serve command uses the Rust program https://github.com/fastly/Viceroy/ to run stuff. It automatically fetches the latest release, but then that binary doesn’t work:
$ fastly compute serve
…
✓ Fetching latest Viceroy release
✓ Running local server
INFO: Command output:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
ERROR: fork/exec /home/jojo/.config/fastly/viceroy: no such file or directory.
This error may be caused by a problem with your host environment, for example too-restrictive file permissions, files that already exist, or a full disk.
As usual on NixOS, the wrong linker is the (or at least one) problem:
/home/jojo/.config/fastly/viceroy: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=ad6929dea160708e4501e5e365ca6b80469a480e, for GNU/Linux 3.2.0, stripped
I see two possible ways to approach the problem:
Package viceroy for nixpkgs (straightforward rustPlatform.buildRustPackage seems to work), patch fastly to always use that version, disable auto-updating viceroy.
Let fastly fetch the binary release, but patch it to run patchelf on it after downloading.
We should package it and adjust the PATH of fastly to find it. For Auto Update we should make a PR to allow disabling that feature and enable that by default with nix
The
fastly compute serve
command uses the Rust program https://github.com/fastly/Viceroy/ to run stuff. It automatically fetches the latest release, but then that binary doesn’t work:As usual on NixOS, the wrong linker is the (or at least one) problem:
I see two possible ways to approach the problem:
viceroy
for nixpkgs (straightforwardrustPlatform.buildRustPackage
seems to work), patchfastly
to always use that version, disable auto-updatingviceroy
.fastly
fetch the binary release, but patch it to runpatchelf
on it after downloading.@ereslibre @shyim, do you have thoughts on this?
The text was updated successfully, but these errors were encountered: