ion icon indicating copy to clipboard operation
ion copied to clipboard

sst cli doesn't run on readonly linux distros like nixOS

Open vincent-thomas opened this issue 1 year ago • 3 comments

$ pnpm sst deploy --stage dev --print-logs
time=2024-09-23T18:11:47.901+02:00 level=INFO msg="checking for pulumi" path=/home/vt/.config/sst/bin/pulumi
time=2024-09-23T18:11:48.002+02:00 level=INFO msg="checking for bun" path=/home/vt/.config/sst/bin/bun
time=2024-09-23T18:11:48.003+02:00 level=INFO msg="bun install"
time=2024-09-23T18:11:48.003+02:00 level=INFO msg="bun downloading" url=https://github.com/oven-sh/bun/releases//download/bun-v1.1.29/bun-linux-x64-baseline.zip
time=2024-09-23T18:11:52.192+02:00 level=INFO msg="initializing project" version=3.1.35
time=2024-09-23T18:11:52.192+02:00 level=INFO msg="esbuild building" out=/home/vt/personal/trustpass-web/.sst/platform/sst.config.1727107912192.mjs
time=2024-09-23T18:11:52.195+02:00 level=INFO msg="esbuild built" outfile=/home/vt/personal/trustpass-web/.sst/platform/sst.config.1727107912192.mjs
time=2024-09-23T18:11:52.225+02:00 level=INFO msg="evaluating config"
time=2024-09-23T18:11:52.249+02:00 level=INFO msg="config evaluated"
time=2024-09-23T18:11:52.250+02:00 level=INFO msg="checking platform"
time=2024-09-23T18:11:52.250+02:00 level=INFO msg="installing deps"
⠋  Installing providers...time=2024-09-23T18:11:52.250+02:00 level=INFO msg="getting package" name=@sst-provider/aws version=latest
⠼  Installing providers...time=2024-09-23T18:11:52.692+02:00 level=INFO msg="getting package" name=@pulumi/aws version=latest
⠦  Installing providers...time=2024-09-23T18:11:52.939+02:00 level=INFO msg="writing package.json"
time=2024-09-23T18:11:52.939+02:00 level=INFO msg="adding dependency" name=aws
time=2024-09-23T18:11:52.939+02:00 level=INFO msg="fetching deps"
time=2024-09-23T18:11:52.939+02:00 level=ERROR msg="exited with error" err="failed to run bun install Could not start dynamically linked executable: /home/vt/.config/sst/bin/bun\nNixOS cannot run dynamically linked executables intended for generic\nlinux environments out of the box. For more information, see:\nhttps://nix.dev/permalink/stub-ld\n"
✕  Could not install dependencies

$ bun --version
1.1.27

vincent-thomas avatar Sep 23 '24 16:09 vincent-thomas