fsprojects / fsprojects/Paket

paket simplify does not operate on groups in paket.references

Open
#2,382 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description

The paket simplify function will reduce this paket.references:

Castle.Core
Castle.Windsor

to this

Castle.Windsor

However, if the references are in a group it will have no effect, e.g.:

group Foo
Castle.Core
Castle.Windsor

remains

group Foo
Castle.Core
Castle.Windsor

though paket.dependencies is simplified correctly.

Repro steps
  1. Create a new project

  2. Add Castle.Windsor via nuget.

  3. Run paket convert-from-nuget

  4. Alter paket.dependencies and paket.references to put the packages in a group (i.e. add "group Foo" to the top of each file and indent the remaining contents).

  5. Run paket install

  6. Run paket simplify

Expected behavior

paket.dependencies will be simplified (the reference to Castle.Core will be removed).
paket.references will be simplified (the reference to Castle.Core will be removed).

Actual behavior

paket.dependencies will be simplified (the reference to Castle.Core will be removed).
paket.references will be unchanged.

Known workarounds

None, if you have multiple groups.

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 issue with grouped paket.dependencies and paket.references, then trace the paket simplify handling for paket.references and compare it with the working paket.dependencies behavior. Done means the grouped paket.references removes Castle.Core while preserving the group; verify with paket install followed by paket simplify.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.