fsprojects / fsprojects/Paket

Sanity check for missing packages folder but existing cache file

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

Nobody has claimed this yet.

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

Description

Description

When the cache exists under paket-files, it does not download any missing files. Even if the complete packages folder is missing, nothing is downloaded.

Repro steps

I accidently checked in the paket-files folder, as it was not in my gitignore file before. After that, the build server did not restore any package anymore.

Expected behavior

When the package folder does not exist or is empty, it should ignore the cache or at least print a message.

Known workarounds

Ask on twitter why no package is restored anymore, than remove the cache file from the version control ;)

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 reproducing the restore with an existing paket-files cache and a missing or empty packages folder, then trace Paket's package restore and cache handling entry points. Done means missing package files are downloaded despite the cache, or a clear message explains why restoration was skipped.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.