emgarten / Sleet

A static nuget feed generator for Azure Storage, AWS S3, and more.
MIT License
362 stars 43 forks source link

Error Uri is not rooted in the basePath with 6.0.1 #197

Closed perpetualKid closed 7 months ago

perpetualKid commented 7 months ago

Our pipeline started failing with below error yesterday, which seems to be related to the new sleet version 6.0.1.

[System.ArgumentException] Uri https://storageaccount.blob.core.windows.net/ is not rooted in the basePath: https://storageaccount.blob.core.windows.net/builds/

this is the command used:

$feed='builds'
dotnet tool run sleet push .\..\..\a --config none -p SLEET_FEED_TYPE=azure -p SLEET_FEED_CONTAINER=$feed -p SLEET_FEED_CONNECTIONSTRING=${env:connectionstring}

Rolling back/fixing sleet version to 5.2.12 or prior fixes that for the moment.

emgarten commented 7 months ago

Thanks for the report, I'll take a look

emgarten commented 7 months ago

This has been fixed in https://www.nuget.org/packages/Sleet/6.0.3

perpetualKid commented 7 months ago

This has been fixed in https://www.nuget.org/packages/Sleet/6.0.3

confirmed works, thanks for quick action!