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
nikola init --demo fails with a permission error #3606
Comments
This looks like a quick fix, I am now writing a patch. |
@nbraud Hi, what’s the status on your proposed patch? I can see you committed it to your repo, could you make a pull request with it? |
@Kwpolska Apologies for the lack of answer, I was quite ill and not working further on redoing my website (which is what I was trying I'll check out later today whether my patchset is ready to be submitted as a PR. |
This is still an issue. It is similar to #2962. The created demo files can also not be removed. Sudo is needed!
|
We don't have the resources to figure out Nix. If anyone wants this fixed, patches are welcome. |
Environment
Python Version: 3.9.10
Nikola Version: 8.2.0
Operating System: NixOS “unstable” 22.05pre-git
Description:
nikola init --demo
fails, even when run in a clean environment and empty directory:Diagnosis:
I believe this is due to the newly-created folder (here
./demo
) not being writeable by the user, asnikola init
preserves the file mode from thedata/samplesite
resource, which is stored as read-only (even for its owner,root
) by NixOS (like all other packages) :The text was updated successfully, but these errors were encountered: