-
Notifications
You must be signed in to change notification settings - Fork 89
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
Unable to install packages with dependencies from Artifactory PSGallery mirror (NuGet v2) #1633
Comments
The problem appears to lie within Around line 1145, the filter query builder switches from conditionally prepending (FWIW, troubleshooting this was significantly impeded by vagueness in the error returned from Install-PSResource. There's no I could file a PR to further conditionalize prepending HDWF about adjusting |
@SydneyhSmith Can some engineering resources from your team weigh in here? I'm happy to submit PRs for either option, but I want to make effective use of your team's (and my) time on this. Continually patching fencepost-type problems in the NuGet v2 query builders (both in We're encountering internal scenarios where we need proper dependency support on module/script install, so this is of particular importance to us right now. |
@sean-r-williams thanks for creating this issue and providing such a detailed report, it was helpful for us to see what is happening. We think a few things will be helpful:
|
@anamnavi Thanks for the insight. I'll submit two PRs in this case:
|
@anamnavi Both PRs have been filed. If your team would like more time to review #1645, can you prioritize merging #1644 into the next patch release? #1644 is a smaller band-aid that should be easier to integrate in the short term. Again, this completely breaks PSResourceGet on module/script packages that declare dependencies with Artifactory. We're just starting to migrate packages with nontrivial dependencies - engineers not being able to pull said packages back out of Artifactory is impacting their work. |
Prerequisites
Steps to reproduce
Microsoft.Graph.Teams
, which depends onMicrosoft.Graph.Authentication
)Expected behavior
Actual behavior
Install-PSResource: Package(s) 'microsoft.graph.teams' could not be installed from repository 'Artifactory-Remote'.
Error details
Environment data
Visuals
Running the command with
$DebugPreference="Continue"
yields the following:The request URL is the problem here. The string
and NormalizedVersion ge '2.17.0' and NormalizedVersion le '2.17.9'
is not a valid OData filter.The text was updated successfully, but these errors were encountered: