Open OreoFrosting opened 1 year ago
@OreoFrosting, I have the same problem with 7-zip. I noticed that, just like in your screenshot, the parser appears to interpret id: 7zip.7zip
as just 7
which causes winget search to fail on configure.
I was able to work around this problem by putting 7-zip.7-zip in quotes, like this: id: "7-zip.7-zip"
.
This resolved the issue with 7-zip for me. I didn't have the issue with VS Code.
I still think this should be treated as a bug.
I had this problem as well. I had installed Microsoft.WinGet.DSC
on my system already. I think it was conflicting with the vendored version that winget brings with itself. For some reason I couldn't Uninstall-Module
the one in my PSModulePath
, but when I deleted it things started to work.
Brief description of your issue
When I run winget configure on my yaml file, I get the message "The module for the configuration unit is available in multiple locations within the same version." I've also had trouble finding the correct resource name within given DSC modules, is there an easy way to do this that I am unaware of? I think I'm using the correct resource to get vscode and 7zip.
Steps to reproduce
Run winget configure with my given yaml code
Expected behavior
I expected both vscode and 7zip to install as expected
Actual behavior
An error/warning is given
Environment