Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Nuget package generated by git dependency is not included.

Open Larocceau opened this issue 11 months ago • 2 comments

I created a very minimal project to test the git dependency feature, but I feel like it's broken.

This is my very basic paket.dependencies:

source https://api.nuget.org/v3/index.json

storage: none
git https://github.com/CompositionalIT/farmer.git container-app-probes build: "dotnet pack -c Release -o PackOutput", OS: windows, Packages: PackOutput

This does clone the repository into paket-files/github.com folder, and creates a nupkg:

Image

but then paket claims that the package is not available:

Installing into projects:
Created dependency graph (0 packages in total)
F# project C:\Users\JoostKaptein\code\disposable\repro-paket-git\repro-paket-git.fsproj does not reference FSharp.Core.
Total time taken: 5 milliseconds
Paket failed with
-> Installation Errors :
    - C:\Users\JoostKaptein\code\disposable\repro-paket-git\paket.references uses NuGet package Farmer, but it was not found in the paket.lock file in group Main.

reproduction repo is available here

Larocceau avatar May 16 '25 12:05 Larocceau

you can add nuget source

# paket.references

...
source ./paket-files/github.com/CompositionalIT/farmer/PackOutput
...

nuget Farmer

dafanasiev avatar May 17 '25 16:05 dafanasiev

that doesnot work, as it just pulls in the nuget version of the packages; besides, is adding it as a nuget source not what the "packages" option is supposed to do?

Larocceau avatar May 20 '25 09:05 Larocceau