Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treat * as 'no filter' when searching a registry for versions. #770

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

BillyONeal
Copy link
Member

This fixes being unable to add / use / etc. artifacts filtered for a particular registry.

Before:

PS C:\Dev\test> ..\vcpkg\vcpkg.exe find artifact gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Downloading vcpkg-ce bundle 2022-10-17...
 Artifact                     Version         Summary
 microsoft:compilers/arm/gcc  2020.10.0       GCC compiler for ARM CPUs.
 arm:gcc                      10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> ..\vcpkg\vcpkg.exe find artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
 Artifact  Version         Summary
 arm:gcc   10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> ..\vcpkg\vcpkg.exe add artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
ERROR: Unable to resolve artifact: arm:gcc
PS C:\Dev\test>

After:

PS C:\Dev\test> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.ps1 find artifact gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Using in-development vcpkg-artifacts built at: C:/Dev/vcpkg-tool/ce/ce
 Artifact                     Version         Summary
 microsoft:compilers/arm/gcc  2020.10.0       GCC compiler for ARM CPUs.
 arm:gcc                      10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.ps1 find artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Using in-development vcpkg-artifacts built at: C:/Dev/vcpkg-tool/ce/ce
 Artifact  Version         Summary
 arm:gcc   10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.ps1 add artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Using in-development vcpkg-artifacts built at: C:/Dev/vcpkg-tool/ce/ce
 Artifact  Version         Status        Dependency  Summary
 arm:gcc   10.3.0-2021.10  will install              GCC compiler for ARM CPUs.

Run `vcpkg activate` to apply to the current terminal
PS C:\Dev\test>

…particular registry.

Before:

```
PS C:\Dev\test> ..\vcpkg\vcpkg.exe find artifact gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Downloading vcpkg-ce bundle 2022-10-17...
 Artifact                     Version         Summary
 microsoft:compilers/arm/gcc  2020.10.0       GCC compiler for ARM CPUs.
 arm:gcc                      10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> ..\vcpkg\vcpkg.exe find artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
 Artifact  Version         Summary
 arm:gcc   10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> ..\vcpkg\vcpkg.exe add artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
ERROR: Unable to resolve artifact: arm:gcc
PS C:\Dev\test>
```

After:

```
PS C:\Dev\test> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.ps1 find artifact gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Using in-development vcpkg-artifacts built at: C:/Dev/vcpkg-tool/ce/ce
 Artifact                     Version         Summary
 microsoft:compilers/arm/gcc  2020.10.0       GCC compiler for ARM CPUs.
 arm:gcc                      10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.ps1 find artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Using in-development vcpkg-artifacts built at: C:/Dev/vcpkg-tool/ce/ce
 Artifact  Version         Summary
 arm:gcc   10.3.0-2021.10  GCC compiler for ARM CPUs.

PS C:\Dev\test> C:\Dev\vcpkg-tool\out\build\x64-Debug\vcpkg.ps1 add artifact arm:gcc
warning: vcpkg-artifacts are experimental and may change at any time.
Using in-development vcpkg-artifacts built at: C:/Dev/vcpkg-tool/ce/ce
 Artifact  Version         Status        Dependency  Summary
 arm:gcc   10.3.0-2021.10  will install              GCC compiler for ARM CPUs.

Run `vcpkg activate` to apply to the current terminal
PS C:\Dev\test>
```
@BillyONeal
Copy link
Member Author

Mark told me this looks good to him over chat, so merging :)

@BillyONeal BillyONeal merged commit 78bc9ce into microsoft:main Oct 28, 2022
@BillyONeal BillyONeal deleted the make-add-consistent-again branch October 28, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants