Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struggling to use the readme - flake.lock: no such file or directory #101

Open
percolating-sirsh opened this issue Jan 23, 2025 · 1 comment

Comments

@percolating-sirsh
Copy link

percolating-sirsh commented Jan 23, 2025

Hi

I just started today trying to follow the readme. I have not used Nix for many years and may well have screwed something up but i followed the advice in the Contributors section and used that installer you recommended.

When i try

nix flake init -t github:xataio/pgzx

At first i get what i think is an understandable error ".envrc is blocked. Run direnv allow to approve its content" -
But when i direnv allow, it seems to get into a weird state where some files are not copied to my source??

direnv: using flake
cat: flake.lock: No such file or directory
cat: flake.lock: No such file or directory
error: path '/nix/store/7sbak9b9lzq1cyp9vwskrrh13n4w14lr-source/TEST/E1/flake.nix' does not exist
cat: flake.lock: No such file or directory

While I realize this could be just because Im not familiar with Nix I'd appreciate any advice in case I dont resolve it after spending more hours.

Best,

Sirsh

@percolating-sirsh
Copy link
Author

percolating-sirsh commented Jan 23, 2025

p.s. - i think that might have been a git thing. git state was "dirty" although i dont know enough about nix+git to deal with that. i moved to a clean folder outside of any git repo for now and it was fine as a temporary solution and maybe i can figure out how the nix+git stuff should be managed later.

now im getting an error (maybe its a mac/m1 thing)

• Added input 'pgzx/zls/zig-overlay':
    follows 'pgzx/zig-overlay'
error: builder for '/nix/store/xfhj5y6a2misdqygxvxiarprbmqakirp-zig-macos-aarch64-0.14.0-dev.1816+20e03beae.tar.xz.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://ziglang.org/builds/zig-macos-aarch64-0.14.0-dev.1816+20e03beae.tar.xz
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download zig-macos-aarch64-0.14.0-dev.1816+20e03beae.tar.xz from any mirror
       For full logs, run 'nix log /nix/store/xfhj5y6a2misdqygxvxiarprbmqakirp-zig-macos-aarch64-0.14.0-dev.1816+20e03beae.tar.xz.drv'.
error: 1 dependencies of derivation '/nix/store/k5s60sdxia0azayjb44y1ias2f6sfk0y-zig-0.14.0-dev.1816+20e03beae.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ss2vid9nmz4fab34a601ijm4m2vpwl5p-nix-shell-env.drv' failed to build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant