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

Scaffolding command for new app fails due to lock file error #8

Open
jost-s opened this issue Apr 11, 2024 · 6 comments
Open

Scaffolding command for new app fails due to lock file error #8

jost-s opened this issue Apr 11, 2024 · 6 comments

Comments

@jost-s
Copy link

jost-s commented Apr 11, 2024

When I execute the command to scaffold a new app under macOS, I get the following error:

$ nix run github:holochain-open-dev/templates#hc-scaffold-app-template -- web-app
do you want to allow configuration setting 'extra-substituters' to be set to 'https://holochain-open-dev.cachix.org' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
do you want to allow configuration setting 'extra-trusted-public-keys' to be set to 'holochain-open-dev.cachix.org-1:3Tr+9in6uo44Ga7qiuRIfOTFXog+2+YbyhwI/Z6Cp4U=' (y/N)? y
do you want to permanently mark this value as trusted (y/N)? y
error:
       … while updating the lock file of flake 'github:holochain-open-dev/templates/aefe91aa3fae296e5c7e685fc413696f0adfb46c'

       error: cannot write modified lock file of flake 'github:holochain-open-dev/templates' (use '--no-write-lock-file' to ignore)

Executing the same command with the suggested option succeeds

$ nix run github:holochain-open-dev/templates#hc-scaffold-app-template --no-write-lock-file -- web-app
@guillemcordoba
Copy link
Contributor

This should be fixed now, could you try it out again?

@jost-s
Copy link
Author

jost-s commented Apr 15, 2024

It still shows the same error for me when running the above command.

@guillemcordoba
Copy link
Contributor

Hum can you try it with refresh? Maybe it's still cached?

nix run github:holochain-open-dev/templates#hc-scaffold-app-template --refresh -- web-app

I did try it on a MacOS and it worked...

@jost-s
Copy link
Author

jost-s commented Apr 15, 2024

I don't know what's happening, but I get the same

$ nix run github:holochain-open-dev/templates#hc-scaffold-app-template --refresh -- web-app
error:
       … while updating the lock file of flake 'github:holochain-open-dev/templates/e443646c27ceee63e383e856aba73409c1879b74'

       error: cannot write modified lock file of flake 'github:holochain-open-dev/templates' (use '--no-write-lock-file' to ignore)

@guillemcordoba
Copy link
Contributor

Really interesting... What's your nix version? Maybe this is a bug in nix?

@jost-s
Copy link
Author

jost-s commented Apr 16, 2024

I have nix 2.18.2

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

2 participants