fsprojects / fsprojects/Paket

Paket pack does not include dependencies from references

Open
#2,353 3 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

Description

I have a project with several references in paket.references with versions defined at solution level paket.dependencies file.

When I run any of the following:

paket.exe pack output nugets pin-project-references lock-dependencies symbols include-referenced-projects -v
paket.exe pack output nugets symbols include-referenced-projects -v
paket.exe pack output nugets include-referenced-projects -v

The nupkg generated does not include any dependency.

Repro steps
  1. Create a simple solution with a single project with SimpleInjector (for example) dependency.

  2. Add paket.dependencies

nuget SimpleInjector 4.0.6
  1. Within the project add the paket.references to reference the dependency
SimpleInjector
  1. Create the template file within the project

{ProjectName}.paket.template

type project
requireLicenseAcceptance false
releaseNotes MyProject
copyright Copyright 2017
tags Tags
include-referenced-projects true
include-pdbs true
  1. Run paket pack output nugets include-referenced-projects
Expected behavior

The nupkg generated should contain a dependency to SimpleInjector 4.0.6

Actual behavior

The package is generated without dependencies.

Known workarounds

Adding dependencies manually to template adds them with vesrion 0.0.0

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 paket.dependencies, paket.references, and the {ProjectName}.paket.template, then run paket pack with include-referenced-projects. Trace the paket pack entry point and verify that the generated nupkg declares SimpleInjector 4.0.6 as a dependency without requiring a manual template entry.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp
Domain
build-system, cli, 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.