-
Notifications
You must be signed in to change notification settings - Fork 239
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
Projects containing read-only files cannot be built #1071
Comments
This may be related to some instances of #700 |
Having the exact same issue with node provider. The node_modules folder must be removed in order to |
I should add if you're having this permission problem and you're okay with setting all permissions within a particular directory to read/write, the following will fix permissions, e.g. |
@acaloiaro is there a way for this directory to not be copied at all? |
Struggling with this as well:
This identifies all of the read only files. I confirmed they are all in |
Is there an existing issue for this?
Describe the bug
When projects being built by
nixpacks
contain read-only files,nipacks build ...
results in a permission error due to Rust's fs::copy retaining file permissions, and nixpacks rewriting all CRLF line endings with LF:nixpacks/src/nixpacks/files.rs
Line 35 in 2ec70b7
To reproduce
In any project to be built by nixpacks, on a Linux system
Here from the
strace
output, we can see that the permission error occurs openingtest
as writableAnd
stat
shows us that that file retained its original read-only permissions, preventing the writable file handleExpected behavior
Environment
OS: NixOS Unstable
Kernel: Linux version 6.6.17 (nixbld@localhost) (gcc (GCC) 13.2.0, GNU ld (GNU Binutils) 2.40) #1-NixOS SMP PREEMPT_DYNAMIC Fri Feb 16 18:10:57 UTC 2024
Nixpacks version: 1.20.0 / any
The text was updated successfully, but these errors were encountered: