Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Paket restore IOException: read-only filesystem

Open sheridanchris opened this issue 1 year ago • 2 comments

Description

The dotnet paket restore command fails when encountering a read-only file-system.

I use Nix and Direnv for managing my projects and a .direnv directory is created with symlinks to my read-only root filesystem.

Repro steps

Unable to reproduce at this moment in a non-nix environment. I will update the issue when I have.

Expected behavior

Paket restores as normal.

Actual behavior

> dotnet paket restore

Paket version 8.0.3+75b30cdcb8859e8d129f139444d9b9b600bfff07
Total time taken: 0 milliseconds
Paket failed with
-> IOException: Read-only file system : '/home/christian/Programming/Marten.FSharp/.direnv/flake-inputs/yknlydpjczha2l9f4yd3wz5nhj4g4rwq-source/pkgs/test/dotnet/project-references/application/obj'

Known workarounds

No workarounds have been found at this time.

sheridanchris avatar Mar 19 '24 18:03 sheridanchris

I'm seeing this when using direnv with a flake, but only when I add a paket.local file to override a dependency.

joprice avatar Apr 22 '24 15:04 joprice

This also happens when I try to use the git override within the paket.dependencies file, so I'm unable to test packages locally. This hinders contributing to packages as a common pattern is to test them locally against a known working project. Is there any other way to depend on a package locally to work around this?

joprice avatar May 18 '24 01:05 joprice