aspnet / LibraryManager

MIT License
457 stars 83 forks source link

restoring packages from cdnjs is failing #686

Closed stebueh closed 2 years ago

stebueh commented 2 years ago

Describe the bug

In our ASP.NET Core web application, we manage our client-side libraries in a libman.json file and restore them during build using the "Microsoft.Web.LibraryManager.Build" PackageReference in the .csproj. We use cdnjs as the default provider.

Starting today, the restore during build fails with the first client-side library to be restored:

Severity Code Description Project File Line Suppression State Error LIB002 The "twitter-bootstrap@3.4.1" library could not be resolved by the "cdnjs" provider yyyy.zzzz C:\Users\xxxx\source\repos\yyyy\src\yyyy.zzzz\libman.json 5

cdnjs started rolling out some API change, which might be the reason for the failed restore, see https://github.com/cdnjs/cdnjs/issues/14140

Expected behavior

client-side libraries should be downloaded

Additional context

Visual Studio 2022 17.2.4 Using the "Microsoft.Web.LibraryManager.Build" PackageReference with my ASP.NET Core Project

PromoFaux commented 2 years ago

Workaround is to clear cache (YMMV!)

https://github.com/cdnjs/cdnjs/issues/14141#issuecomment-1160220546

stebueh commented 2 years ago

duplicate of https://github.com/aspnet/LibraryManager/issues/685, closing