antlr / antlr/antlr4

Cannot install package because of dependencies

Open
#2,863 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.