fsprojects / fsprojects/Paket

Sometimes / Somehow package cache is corrupt / missing files

Open
#3,517 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

I have actually seen this myself but apparently never reported because I had no idea how it happened.

But it seems like now others hit this issue as well: https://github.com/fsharp/FAKE/issues/2261

I would assume this can happen when exceptions are involved somewhere, maybe we ignore them at the wrong place. Or we don't extract to a temporary place and only move it when everything worked. (At least those are the things we should check before closing this issue)

Repro steps

Unknown

Expected behavior

Corrupt cache should not happen

Actual behavior

Corrupt cache is seen from time to time

Known workarounds

Clear cache or affected directory when this happens...

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.

Research direction

Start by tracing Paket's package-cache download and extraction flow, focusing on how exceptions and partial operations are handled. Investigate whether packages are extracted directly into the cache or staged temporarily; done means identifying the corruption path and preventing incomplete or missing files from remaining in the cache.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.