fsprojects / fsprojects/Paket

Paket uses package name from dependencies file instead the one from NuGet for HintPath

Open
#4,110 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

Latest paket version (not sure when it changed though) changes all casings in the HintPath property of System.Text.Json to .JSON - This causes a "dirty" solution for our devs every time they run a paket install for unrelated upgrades. It makes diffing hard and people are unsure if they should commit the change or not. Also not all devs are using the same paket version at the same moment, so its flipping between both states. They are also hesitant since they expect it could change back to lower casing at some point.

The initial mistake was though to have the package name spelled incorrectly in dependencies file - it was JSON there. When we fixed that things went back to normal.

Repro steps
  • Reference System.Text.JSON (wrong casing) package in any dependencies file
Expected behavior
  • .csproj files continue using System.Text.Json for the HintPath property
Actual behavior
  • .csproj files are changed to System.Text.JSON

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 issue with a dependencies file referencing System.Text.JSON and inspect how Paket generates the HintPath in the affected .csproj files. Trace where the package name from the dependencies file is used instead of the NuGet name. Done means HintPath uses System.Text.Json consistently despite incorrect casing in the dependencies file, with regression coverage if the project’s tests provide a suitable entry point.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.