Skip to content

Commit

Permalink
FIX: no source when adding local package
Browse files Browse the repository at this point in the history
so it can use an external source as well not only local for resolving other deps
  • Loading branch information
justadreamer committed Dec 23, 2024
1 parent 1361bc6 commit 677b93c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ci/run-integration-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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{
Expand All @@ -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 ""
}
Expand Down

0 comments on commit 677b93c

Please sign in to comment.