fsprojects / fsprojects/Paket

pack command produces inconsistent results

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

Nobody has claimed this yet.

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

Description

When pack command is called with templatefile parameter the resulting nupkg file is different than the one that is built when the command is called without templatefile parameter.

This behaviour can be reproduced by building the solution from linked repository and executing pack.cmd from the solution root.

Expected result in both cases is the following:

lib
|_ net452
  |_ ClassLibrary2.dll

Actual result when called with templatefile parameter:

lib
|_ net452
  |_ ClassLibrary1.dll
  |_ ClassLibrary2.dll
  |_ ClassLibrary3.dll

See https://github.com/scoobadog/PaketRepro/tree/issue%232196 for a repro.

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

Build the solution from the linked PaketRepro issue#2196 repository, then run pack.cmd from the solution root with and without the templatefile parameter. Compare the resulting nupkg contents against the expected lib/net452/ClassLibrary2.dll layout; done means both invocations produce the same expected contents.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.