Skip to content

Commit

Permalink
Don't hardcode CI feed URL
Browse files Browse the repository at this point in the history
Use the same project-generated constant used for checking for updates in the rendered message for updating.

This was a bug from the previously hardcoded feed.
  • Loading branch information
kzu committed Jan 25, 2025
1 parent 31d32e2 commit 96352b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dotnet-openlaw/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static async Task<string[]> CheckUpdates(string[] args)
return [
$"Hay una nueva version de [yellow]{ThisAssembly.Project.PackageId}[/]: [dim]v{localVersion.ToNormalizedString()}[/] -> [lime]v{update.ToNormalizedString()}[/]",
$"Actualizar con: [yellow]dotnet[/] tool update -g {ThisAssembly.Project.PackageId}" +
(civersion ? " --source https://kzu.blob.core.windows.net/nuget/index.json" : ""),
(civersion ? " --source " + ThisAssembly.Project.SLEET_FEED_URL : ""),
];
}

Expand Down

0 comments on commit 96352b4

Please sign in to comment.