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

Paket restore IOException: read-only filesystem #4251

Open
sheridanchris opened this issue Mar 19, 2024 · 2 comments
Open

Paket restore IOException: read-only filesystem #4251

sheridanchris opened this issue Mar 19, 2024 · 2 comments

Comments

@sheridanchris
Copy link

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 sheridanchris changed the title Paket restore IOException Paket restore IOException: read-only filesystem Mar 19, 2024
@joprice
Copy link

joprice commented Apr 22, 2024

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

@joprice
Copy link

joprice commented May 18, 2024

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?

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