Paket restore IOException: read-only filesystem

Open
#4,251 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
fsharp
Domain
cli

Research direction

Start at the dotnet paket restore entry point and try to reproduce the failure with the Nix/Direnv .direnv symlinks and read-only filesystem described in the report. Trace the restore operation that reaches the reported obj path; done means Paket completes restore successfully without attempting an invalid write, with a regression test for the scenario.

Written by the indexing model from the issue text.

Description

bug
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.

Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fsprojects/Paket

All issues in fsprojects/Paket

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.