fsprojects / fsprojects/Paket

Log if expected directories (configured by env var) cannot be accessed

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

Nobody has claimed this yet.

enhancement need diagnostic info/warn/error resilience
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Description

Some path/dir are configured by env var.
If a path cannot be accessed (like non existing drive), paket crash, should instead log a message

Repro steps

set NuGetCachePath env var to a non existing drive path.
paket fails

Expected behavior

nicer error log

Actual behavior

crash

Known workarounds

unset that variable to use defaults

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

Reproduce the failure by setting NuGetCachePath to a path on a non-existing drive, then trace how configured directories are accessed. Done means Paket logs a useful message when the directory cannot be accessed instead of crashing, while leaving the default-path workaround unnecessary.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.