Skip to content

Improve error message for non-existing nuget feeds #545

Closed

Description

@yreynhout

Given a computer that has a nuget package source that refers to a local folder on that computer and that local folder DOES NOT EXIST,
When running paket convert-from-nuget
Then paket fails with the correct statement that it can not find part of the local folder (aka path).

To be precise, I think it's the implicit (unless --no-install was specified) paket install phase that fails, so the issue might be more general than the conversion from nuget.

However, it is non-obvious to an end-user what that path means nor why paket is even looking at that path. So what I'm asking for is a clearer message upon failure or skipping non-existing package sources silently, whichever matches the paket philosophy best.

Additionaly, once the end-user finds out about this, he can remove the culprit nuget package sources from his list of nuget package sources. But alas, that doesn't help, since at that point paket has already copied those sources into its paket.dependencies. Perhaps the integrity of the paket sources should be verified as well.

Activity

  1. forki commented on Jan 13, 2015

    @forki
    Member
    1. @theimowski could you try to check if a package feed exists during convert-from-nuget?
    2. I'll try to improve the error message during paket install.

    @yreynhout could you please give the corresponding line from the paket.dependencies file (or something similar)?

  2. changed the title [-]paket convert-from-nuget crash[/-] [+]Improve error message for non-existing nuget feeds[/+] on Jan 13, 2015
  3. yreynhout commented on Jan 13, 2015

    @yreynhout
    Author

    @forki An entry that resembles source c:\path\does\not\exist at the top of that file.

  4. theimowski commented on Jan 13, 2015

    @theimowski
    Member

    I'll take a look tomorrow

  5. forki commented on Jan 13, 2015

    @forki
    Member

    In latest version we get the following on install:

    image

  6. theimowski commented on Jan 14, 2015

    @theimowski
    Member

    should convert-from-nuget check local feeds only or remote too?

  7. forki commented on Jan 14, 2015

    @forki
    Member

    probably all.
    But the question is what we do if it fails!?

    2015-01-14 11:15 GMT+01:00 Tomasz Heimowski [email protected]:

    should convert-from-nuget check local feeds only or remote too?

    —
    Reply to this email directly or view it on GitHub
    #545 (comment).

  8. theimowski commented on Jan 14, 2015

    @theimowski
    Member

    nice yellow warning?

  9. theimowski commented on Jan 14, 2015

    @theimowski
    Member

    sometimes nuget v2 feed is also down, so failing because of that seems like an overkill

  10. forki commented on Jan 14, 2015

    @forki
    Member

    Yes a warning is good.
    And then the new error message during install will fail and tell the user
    what to do.
    On Jan 14, 2015 11:34 AM, "Tomasz Heimowski" [email protected]
    wrote:

    sometimes nuget v2 feed is also down, so failing because of that seems
    like an overkill

    —
    Reply to this email directly or view it on GitHub
    #545 (comment).

  11. theimowski commented on Jan 14, 2015

    @theimowski
    Member

    cool, will do my best to send a PR today

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions