Skip to content

Paket fails with invalid local sources #372

Closed

Description

@tpluscode

One my machine I had some local package sources defined in NuGet. Now when I used paket in a new project, when fetching versions for X it would fail saying that part of path wan not found. It actually happened for two different paths. One indeed doesn't exist and the other contains spaces. I guess that invalid sources should be skipped, maybe with a warning and paths with spaces should be handled correctly.

Activity

  1. forki commented on Nov 19, 2014

    @forki
    Member

    Can you please give a small repro of the paket.dependencies?

  2. tpluscode commented on Nov 19, 2014

    @tpluscode
    ContributorAuthor

    Now that I try to reproduce it I get even weirder behaviour. I created a new solution and a paket.dependencies file with some bogus local path. When I do paket add nuget X that local source is removed from the file.

  3. tpluscode commented on Nov 19, 2014

    @tpluscode
    ContributorAuthor

    And about spaces. I just realized that the path was actually imported incomplete. Without anything after the first space

  4. forki commented on Nov 19, 2014

    @forki
    Member

    Please give concrete repro steps. I will fix it asap

  5. tpluscode commented on Nov 19, 2014

    @tpluscode
    ContributorAuthor

    Invalid source:

    1. Clone https://github.com/tpluscode/paket-dependencies/
    2. .paket/paket.exe add nuget Newtonsoft.Json
    3. Could not find a part of the path "c:\no\such\folder".

    Disappearing source:

    1. Clone https://github.com/tpluscode/paket-dependencies/
    2. Remove NodaTime from paket.dependencies so that only sources lines remain
    3. .paket/paket.exe add nuget Newtonsoft.Json
    4. Package is added but the local source is gone
  6. forki commented on Nov 19, 2014

    @forki
    Member

    Invlid source:

    image

    I'd argue this is correct. We should not ignore this.

    Regarding the disappearing source: that's fixed in 0.15.2

  7. tpluscode commented on Nov 19, 2014

    @tpluscode
    ContributorAuthor

    Maybe you're right. I won't insist. Thanks for the other fix

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions