Paket icon indicating copy to clipboard operation
Paket copied to clipboard

Improve error messages for dependency groups

Open FrenchMigVaz opened this issue 10 years ago • 1 comments

Description

Given a paket.dependencies with a default Main group And some other groups When the user tries to update/remove a package ID not in the Main group And he forgets to specify the group Then the error message does only tell him that the package ID does not exist in group Main

Repro steps

Using a paket.dependencies with packages in default group and at least 1 dependency group named InternalTools with 1 package called A. The package A is only used in the dependency group, and not in default one

  1. Call paket update nuget A
  2. The error message only tells that package A does not exist in group Main

Expected behavior

PS C:\svn\ProjectSecret\trunk> ..paket\paket.exe update nuget A Paket version 3.4.0.0 Paket failed with:       Package A was not found in paket.dependencies in group Main.       However, Package A was found in groups:         - InternalTools       You can use the command "group" to specify the dependency group of your package

Actual behavior

PS C:\svn\ProjectSecret\trunk> ..paket\paket.exe update nuget A Paket version 3.4.0.0 Paket failed with:       Package A was not found in paket.dependencies in group Main.

Known workarounds

Today, the developer needs to find the right group main himself. He has to open the paket.dependencies file, search for his package ID and get the group name

FrenchMigVaz avatar Jul 07 '16 09:07 FrenchMigVaz

:+1:

FrenchMigVaz avatar Jul 12 '16 14:07 FrenchMigVaz