fsprojects / fsprojects/Paket

Strange warning with call stack while resolving partially from local package feed

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

Nobody has claimed this yet.

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

Description

Description

Some packages coming from a local feed have a dependency to some other feed. An warning message is shown while resolving (and maybe repeated multiple times):

Source 'Externals/NugetStore' exception: System.Exception: The package Nunit 3.7.1 can't be found in C:\Projects\pakettest\170629_2\Externals\NugetStore.
Please check the feed definition in your paket.dependencies file.
   at Paket.NuGetLocal.findLocalPackage@65-5.Invoke(String message)
   at Paket.NuGetLocal.getDetailsFromLocalNuGetPackage@84.Invoke(Unit unitVar)
   at Microsoft.FSharp.Control.AsyncBuilderImpl.callA@841.Invoke(AsyncParams`1 args)
Repro steps

Use the Repro.zip

  1. .paket\paket.bootstrapper.exe

  2. .paket\paket.exe install

Expected behavior

As the dependency can be resolved there is no need to show this message in normal mode. Maybe just show it in verbose mode. It's questionable whether the call stack should be printed at all.

Actual behavior

The warning message is shown always, and maybe multiple times.

Known workarounds

None.

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

Use the provided Repro.zip and run .paket\paket.bootstrapper.exe followed by .paket\paket.exe install. Start with the Paket.NuGetLocal.findLocalPackage@65-5 and getDetailsFromLocalNuGetPackage@84 stack-trace entries, then compare normal and verbose resolution for the local feed and the paket.dependencies definition. Done means the dependency resolves without the repeated warning and call stack in normal mode.

Written by the indexing model from the issue text.

Assessment

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