Skip to content

Commit 1714dd5

Browse files
author
CID Agent
committed
Fix NuGet smoke test: remove invalid --source flag
The `dotnet add package --source` flag takes a URI/path, not a configured source name. Passing "local" was interpreted as a relative path that doesn't exist, causing "no versions available" errors. Removing the flag lets dotnet search all configured sources including the local one added via `dotnet nuget add source`.
1 parent a195f0f commit 1714dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ jobs:
915915
dotnet new console -o smoke
916916
cd smoke
917917
dotnet nuget add source "$PWD/../nupkg" -n local
918-
dotnet add package Iscc.Lib --source local
918+
dotnet add package Iscc.Lib
919919
cat > Program.cs << 'EOF'
920920
using Iscc.Lib;
921921
if (!IsccLib.ConformanceSelftest())
@@ -930,7 +930,7 @@ jobs:
930930
dotnet new console -o smoke
931931
cd smoke
932932
dotnet nuget add source "$PWD\..\nupkg" -n local
933-
dotnet add package Iscc.Lib --source local
933+
dotnet add package Iscc.Lib
934934
@"
935935
using Iscc.Lib;
936936
if (!IsccLib.ConformanceSelftest())

0 commit comments

Comments
 (0)