Skip to content

Inconsistency when calling install and update #810

Closed

Description

@dzendras

I found an extremely annoying behaviour of paket (tested against versions 0.42 and 1.3.0)
I have a project which has only one dependency: a nuget package FSharp.Data 2.0.14. The dependency was properly installed, added to the project file, dll downloaded to packages directory. So everything works.

What I expect now is that calling a sequence of commands: update, install, update, intall, update etc. should not change anything at all (as the version is fixed). Unfortunately paket falls into an infinite loop of changes:

  1. paket update - modifies csproj file and paket.lock file.
  2. paket install - discards changes introduced previously by modifying csproj and lock file.
  3. paket update - restores the state of csproj and lock files from the 1st step (by discarding changes made in the 2nd step)

and so on...

I have a sample solution which I'm more than happy to send you for analysis.

paket1

which turns into:

paket2

Activity

  1. dzendras commented on May 1, 2015

    @dzendras
    Author

    Similar behaviour can be observed with another nuget package: Microsoft.AspNet.WebApi

  2. forki commented on May 1, 2015

    @forki
    Member

    Yes please send me the sample to sforkmann at gmail - I will try to fix it.

  3. dzendras commented on May 1, 2015

    @dzendras
    Author

    I've just sent it. Good luck! :)

  4. forki commented on May 1, 2015

    @forki
    Member

    fixed in 1.3.1 - please give it a try

  5. dzendras commented on May 4, 2015

    @dzendras
    Author

    I did check the repro I sent you using version 1.3.3. There the last paket command ran was install. After I ran update it did modify the lock and csproj file again (why?). However when I ran install afterwards, none of the files were modified (good!). Running update again did nothing (good!).

    Unfortunately I was able to reproduce the problem using a different dependency.
    I can send you another repro.

  6. forki commented on May 4, 2015

    @forki
    Member

    Yes the version that update generates is the correct one. So it's expected
    that update "wins" and install doesn't change it.

    Please send the other repro
    On May 4, 2015 15:47, "dzendras" [email protected] wrote:

    I did check the repro I sent you using version 1.3.3. There the last paket
    command ran was install. After I ran update I did modify the lock and
    csproj file again (why?). However when I ran install afterwards, none of
    the files were modified (good!). Running update again did nothing (good!).

    Unfortunately I was able to reproduce the problem using a different
    dependency.
    I can send you another repro.

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

  7. forki commented on May 4, 2015

    @forki
    Member

    I think I fixed your latest repro in 1.3.4

  8. dzendras commented on May 4, 2015

    @dzendras
    Author

    Confirmed! Thanks! :)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions