From 677b93ce9def015d22c6eee28046faad9df11f0c Mon Sep 17 00:00:00 2001 From: Eugene Dorfman Date: Mon, 23 Dec 2024 20:13:23 +0100 Subject: [PATCH] FIX: no source when adding local package so it can use an external source as well not only local for resolving other deps --- ci/run-integration-tests.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/run-integration-tests.ps1 b/ci/run-integration-tests.ps1 index 51f1b73d..ec128a49 100644 --- a/ci/run-integration-tests.ps1 +++ b/ci/run-integration-tests.ps1 @@ -37,6 +37,7 @@ if([String]::IsNullOrEmpty($Version) -eq $False) { Push-Location $ExamplesRepoPath Write-Output "Running Nuget Restore" + dotnet nuget list source nuget restore } finally { @@ -46,15 +47,15 @@ if([String]::IsNullOrEmpty($Version) -eq $False) { } $LocalFeed = [IO.Path]::Combine($Home, ".nuget", "packages") - + # Install the nuget packages to the local feed. # The packages in the 'package' folder must be pushed to local feed and cannot be used directly, # as all the other dependencies will already be installed in the local feed. try{ Write-Output "Entering '$NugetPackageFolder' folder" Push-Location "$NugetPackageFolder" - Write-Output "Pushing nuget packages to the local feed" + dotnet nuget add source "$LocalFeed" dotnet nuget push "*.nupkg" -s "$LocalFeed" } finally{ @@ -78,7 +79,7 @@ if([String]::IsNullOrEmpty($Version) -eq $False) { $NextFullName = $_.FullName Write-Output "" Write-Output "Will set the version of the DeviceDetection package to '$Version' in $NextFullName..." - dotnet add $NextFullName package "FiftyOne.DeviceDetection" --version $Version --source "$LocalFeed" + dotnet add $NextFullName package "FiftyOne.DeviceDetection" --version $Version Write-Output "Did set the version of the DeviceDetection package to '$Version' in $NextFullName..." Write-Output "" }