-
Notifications
You must be signed in to change notification settings - Fork 98
Support v3 dependencies for pwsh packages #1575
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
Comments
Thanks @nbarnwell what repository are you seeing this with? and what is the apiversion? |
I updated the reproduction steps. |
Thanks, if you register this as a v2 feed instead of a v3 feed you can get rid of this warning message |
I'll try it again but I'm pretty sure I couldn't get it to work at all with a v2 feed, I think because it's an authenticated feed. |
@SydneyhSmith Indeed it doesn't work for authenticated repositories. In fact, I get the error I previously reported in #1491, which I don't think anyone cares about, either. PowerShell module stuff isn't fit for purpose when it comes to authenticated feeds. It's all very well and good encouraging folks to publish to the PowerShell gallery, but to have this massive blind spot when it comes to corporate packages in private feeds is a real surprise. I'd have thought the PowerShellGet team would've been dogfooding on Azure DevOps Artifacts feeds themselves, but I guess not or these issues (there are several) would get looked at. Also, I wasn't trying to get rid of a warning message - I need dependency support on v3 feeds. V2 feeds are broken so telling me to go back to that when I've been on a several-month-long journey trying to get all this to hang together is a bit hard to swallow. |
I don't know if this issue is related to the topic here. What I find strange, is when adding PowerShellGallery as upstream source, it works with the old PowerShellGet to install a module through there. When using Install-PSResource, if the module has not been downloaded from PowerShellGallery, it throws an error it cannot find the module. |
@Gijsreyn can you please open a new issue for that-- that is not expected |
@SydneyhSmith I'll run some more test to see the different endpoint urls from Azure Artifacts and open a issue if it persists. |
Heya, also blocked on this for a project :( |
Is there a better github issue to watch for progress on implementing this feature? I'm conscious that lots of people must have the same problem and this could have been a duplicate all along? |
on our wishlist -- hoping to get to this one |
As of PR 1023, PSResourceGet moved off the Nuget API and this appears to have degraded v3 nuget feed functionality substantially. Looking through the PSResourceGet issues, there are a number of them that relate to missing functionality in v3 feeds like installing dependencies, searching by tags (or almost anything besides ID), and authentication. @SydneyhSmith could you help us get visibility into what is the roadmap for PSResourceGet nuget v3 feed support, or really PSResourceGet in general? Things here and at https://devblogs.microsoft.com/powershell/ have gotten very quiet over the past year. |
@SydneyhSmith Any update on this? Would be great to have this, would dependent module installation from Azure Artifacts f.e. a lot easier. Thanks in advance! |
This rewrite of the package management has been a long-time coming disappointment. So many other basic things broken, but this? Not a word in the docs about the lack of dependencies support. Can't believe 1es is recommending this instead of getting you to fix v2 package manager to address s360 items. |
Prerequisites
Steps to reproduce
PSResourceRepository
that has the PowerShell Gallery configured as an upstream source. Use theMicrosoft.PowerShell.SecureVault
module as the source of credentials.Install-PSResource PSWindowsUpdate
Expected behavior
The `PSWindowsUpdate` module and any dependencies are installed.
Actual behavior
Error details
No response
Environment data
Visuals
No response
The text was updated successfully, but these errors were encountered: