Cannot install package because of dependencies
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 19k
- Forks
- 3.5k
- PR merge metrics
- No merged PRs in 30d
Description
Is it safe to use -SkipDependencies to install?
PS C:\windows\system32> Find-Package -Name antlr4.runtime.standard
Name Version Source Summary
---- ------- ------ -------
Antlr4.Runtime.Standard 4.8.0 Nuget The .NET Core C# ANTLR 4 runtime from the ANTLR Organization
PS C:\windows\system32> Find-Package -Name antlr4.runtime.standard | Install-Package -Scope AllUsers
The package(s) come(s) from a package source that is not marked as trusted.
Are you sure you want to install software from 'Nuget'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
Install-Package : Dependency loop detected for package 'Antlr4.Runtime.Standard'.
At line:1 char:46
+ ... ckage -Name antlr4.runtime.standard | Install-Package -Scope AllUsers
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : Deadlock detected: (Antlr4.Runtime.Standard:String) [Install-Package], Exception
+ FullyQualifiedErrorId : DependencyLoopDetected,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported Find-Package and Install-Package commands for Antlr4.Runtime.Standard 4.8.0 in PowerShell. Investigate the package dependency metadata and determine whether the dependency loop is valid; done means identifying the cause and documenting whether -SkipDependencies is safe or correcting the package metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100