Skip to content

Commit 45f5e20

Browse files
committed
fix(build): correct GitHub Packages download URL format
- Add missing package ID to GitHub Packages URL path - Fix download URL generation for LocalStack packages on GitHub Packages - URL format: https://github.com/owner/repo/packages/nuget/PackageId
1 parent a825515 commit 45f5e20

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

build/LocalStack.Build/CakeTasks/Nuget/Services/PackageOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private static string GetDownloadUrl(string packageSource, string packageId, str
190190
{
191191
return packageSource switch
192192
{
193-
BuildContext.GitHubPackageSource => $"https://github.com/localstack-dotnet/localstack-dotnet-client/packages",
193+
BuildContext.GitHubPackageSource => $"https://github.com/localstack-dotnet/localstack-dotnet-client/packages/nuget/{packageId}",
194194
BuildContext.NuGetPackageSource => $"https://www.nuget.org/packages/{packageId}/{version}",
195195
BuildContext.MyGetPackageSource => $"https://www.myget.org/packages/{packageId}/{version}",
196196
_ => "Unknown package source"

test-output.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
client-version=2.0.0-url-test

0 commit comments

Comments
 (0)