aspnet / LibraryManager

MIT License
457 stars 83 forks source link

[MSBuild Task] cannot restore a pattern #683

Closed xperiandri closed 2 years ago

xperiandri commented 2 years ago

Describe the bug

Having

{
  "library": "jquery-validate@1.19.4",
  "files": [
    "jquery.validate.min.js",
    "additional-methods.min.js",
    "localization/*"
  ],
  "destination": "wwwroot/lib/jquery-validate"
},

on build produces

libman.json : error LIB018: "jquery-validate@1.19.4" does not contain the following: localization/*
1>libman.json : error LIB018: Valid files are additional-methods.js, additional-methods.min.js, jquery-validation-sri.json, jquery.validate.js, jquery.validate.min.js, localization/messages_ar.js, localization/messages_ar.min.js, localization/messages_az.js, localization/messages_az.min.js, localization/messages_bg.js, localization/messages_bg.min.js, localization/messages_bn_BD.js, localization/messages_bn_BD.min.js, localization/messages_ca.js, localization/messages_ca.min.js, localization/messages_cs.js, localization/messages_cs.min.js, localization/messages_da.js, localization/messages_da.min.js, localization/messages_de.js, localization/messages_de.min.js, localization/messages_el.js, localization/messages_el.min.js, localization/messages_es.js, localization/messages_es.min.js, localization/messages_es_AR.js, localization/messages_es_AR.min.js, localization/messages_es_PE.js, localization/messages_es_PE.min.js, localization/messages_et.js, localization/messages_et.min.js, localization/messages_eu.js, localization/messages_eu.min.js, localization/messages_fa.js, localization/messages_fa.min.js, localization/messages_fi.js, localization/messages_fi.min.js, localization/messages_fr.js, localization/messages_fr.min.js, localization/messages_ge.js, localization/messages_ge.min.js, localization/messages_gl.js, localization/messages_gl.min.js, localization/messages_he.js, localization/messages_he.min.js, localization/messages_hr.js, localization/messages_hr.min.js, localization/messages_hu.js, localization/messages_hu.min.js, localization/messages_hy_AM.js, localization/messages_hy_AM.min.js, localization/messages_id.js, localization/messages_id.min.js, localization/messages_is.js, localization/messages_is.min.js, localization/messages_it.js, localization/messages_it.min.js, localization/messages_ja.js, localization/messages_ja.min.js, localization/messages_ka.js, localization/messages_ka.min.js, localization/messages_kk.js, localization/messages_kk.min.js, localization/messages_ko.js, localization/messages_ko.min.js, localization/messages_lt.js, localization/messages_lt.min.js, localization/messages_lv.js, localization/messages_lv.min.js, localization/messages_mk.js, localization/messages_mk.min.js, localization/messages_my.js, localization/messages_my.min.js, localization/messages_nl.js, localization/messages_nl.min.js, localization/messages_no.js, localization/messages_no.min.js, localization/messages_pl.js, localization/messages_pl.min.js, localization/messages_pt_BR.js, localization/messages_pt_BR.min.js, localization/messages_pt_PT.js, localization/messages_pt_PT.min.js, localization/messages_ro.js, localization/messages_ro.min.js, localization/messages_ru.js, localization/messages_ru.min.js, localization/messages_sd.js, localization/messages_sd.min.js, localization/messages_si.js, localization/messages_si.min.js, localization/messages_sk.js, localization/messages_sk.min.js, localization/messages_sl.js, localization/messages_sl.min.js, localization/messages_sr.js, localization/messages_sr.min.js, localization/messages_sr_lat.js, localization/messages_sr_lat.min.js, localization/messages_sv.js, localization/messages_sv.min.js, localization/messages_th.js, localization/messages_th.min.js, localization/messages_tj.js, localization/messages_tj.min.js, localization/messages_tr.js, localization/messages_tr.min.js, localization/messages_uk.js, localization/messages_uk.min.js, localization/messages_ur.js, localization/messages_ur.min.js, localization/messages_vi.js, localization/messages_vi.min.js, localization/messages_zh.js, localization/messages_zh.min.js, localization/messages_zh_TW.js, localization/messages_zh_TW.min.js, localization/methods_de.js, localization/methods_de.min.js, localization/methods_es_CL.js, localization/methods_es_CL.min.js, localization/methods_fi.js, localization/methods_fi.min.js, localization/methods_it.js, localization/methods_it.min.js, localization/methods_nl.js, localization/methods_nl.min.js, localization/methods_pt.js, localization/methods_pt.min.js

Expected behavior

MSBuild tasks completes LibMan restore successfully and build succeeds

Additional context

<PackageReference Update="Microsoft.Web.LibraryManager.Build" Version="1.0.172" />

Microsoft Visual Studio Enterprise 2022
Version 17.2.2
VisualStudio.17.Release/17.2.2+32519.379
Microsoft .NET Framework
Version 4.8.04161

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00482-20500-48083-AA121
Microsoft Architecture Diagrams and Analysis Tools

Visual C++ 2022   00482-20500-48083-AA121
Microsoft Visual C++ 2022

.NET Core Debugging with WSL   1.0
.NET Core Debugging with WSL

ADL Tools Service Provider   1.0
This package contains services used by Data Lake tools

ASA Service Provider   1.0

ASP.NET and Web Tools 2019   17.2.389.42256
ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0   17.2.389.42256
Azure App Service Tools v3.0.0

Azure Data Lake Tools for Visual Studio   2.6.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools   17.2.389.42256
Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio   2.6.5000.0
Microsoft Azure Stream Analytics Tools for Visual Studio

Bundler & Minifier   2.9.3
Adds support for bundling and minifying JavaScript, CSS and HTML files in any project.

C# Tools   4.2.0-4.22252.24+47cdc16a21bbb8a4aadfb666b011e2059e1be5d2
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CleanRun   1.5
CleanRun allows you to clean, build and run a project with 1 button

Clear MEF Component Cache   1.4
Clears the Visual Studio MEF component cache to fix issues with cache corruption.

Clearly Editable   2.5
Change the editor background color to show which documents can't or shouldn't be edited.

CodeRush for Roslyn   21.2.9.0
DevExpress CodeRush for Roslyn package.

CodeRush for Roslyn Tool Windows   21.2.9.0
DevExpress CodeRush for Roslyn Tool Windows package.

Common Azure Tools   1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Edit Project   1.7.72
An open source Visual Studio extension to add the context menu for editing project/solution file.

File Differ   2.0.28
The easiest way to diff two files directly in Solution Explorer

File Icons   2.7
Adds icons for files that are not recognized by Solution Explorer

GitHub Copilot   1.14.0.1 (v1.14.0.1@c80f05666)
GitHub Copilot is an AI pair programmer that helps you write code faster and with less work.

GitHub Copilot Agent   1.14.5744 (v1.14.0)

IntelliSenseExtenderPackage Extension   1.0
IntelliSenseExtenderPackage Visual Studio Extension Detailed Info

Lombiq Orchard Visual Studio Extension   1.7.0
Visual Studio extension with many features frequently used by Lombiq developers. Contains Orchard-related as well as generic goodies.

Markdown Editor v2   2.0.104
A full featured Markdown editor with live preview and syntax highlighting. Supports GitHub flavored Markdown.

Microsoft Azure Hive Query Language Service   2.6.5000.0
Language service for Hive query

Microsoft Azure Stream Analytics Language Service   2.6.5000.0
Language service for Azure Stream Analytics

Microsoft Azure Tools for Visual Studio   2.9
Support for Azure Cloud Services projects

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Multilingual App Toolkit   4.0
Multilingual App Toolkit helps you localize your Windows Store app by providing file management, pseudo and machine translation, translation editor, and build integration. http://aka.ms/matinstall

NuGet Package Manager   6.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

Open Command Line   2.5.238
2.5.238

OpenT4EditorSettingsCommand Extension   1.0
OpenT4EditorSettingsCommand Visual Studio Extension Detailed Info

Razor (ASP.NET Core)   17.0.0.2218101+885a343b00bcab620a90c1550c37dafd730ce984
Provides languages services for ASP.NET Core Razor.

Resource Pseudo-Localizer   3.5
Adds ability to pseudo-localize string resources in *.resx & *.resw files.

SQL Server Data Tools   17.0.62204.01010
Microsoft SQL Server Data Tools

Surface Dial Tools for Visual Studio   0.8
Adds features to Visual Studio specific to the Surface Dial. You don't need a Surface Book or Surface Studio to take advantage of the Surface Dial.

SVG Viewer   1.0.15
Makes it much easier to work with SVG files by showing a live preview in the bottom-right corner of the code window

TabPath Extension   1.3.0
Shows file paths in tab titles.

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

Tweaks 2022   1.1.134
A collection of minor fixes and tweaks for Visual Studio to reduce the paper cuts and make you a happier developer

TypeScript Tools   17.0.10418.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.2.0-4.22252.24+47cdc16a21bbb8a4aadfb666b011e2059e1be5d2
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools   17.1.0-beta.22253.3+058e7a7e597a02c129f38742f250a4b212da9ee3
Microsoft Visual F# Tools

Visual Studio Inline Suggestions   2.2.1994.35131
Ghost text API for Visual Studio inline suggestions

Visual Studio IntelliCode   2.2
AI-assisted development for Visual Studio.

WebPack Task Runner   1.5.104
Adds support for WebPack in Visual Studio 2015 and 2017's Task Runner Explorer.

ZenCoding   1.2.20
Provides ZenCoding for the HTML Editor - full support for static HTML, Razor and WebForms.
jimmylewis commented 2 years ago

Support for glob patterns was added in 2.1.50. You need to update your PackageReference version.