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

Improve error messages for dependency groups #1797

Closed
Vilmir opened this Issue Jul 7, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@Vilmir

Vilmir commented Jul 7, 2016

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

@forki forki added the enhancement label Jul 12, 2016

@forki forki closed this in 8e45f69 Jul 12, 2016

@Vilmir

This comment has been minimized.

Show comment
Hide comment

Vilmir commented Jul 12, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment