Skip to content

Old paket bootstrap (renamed to paket.exe) overwrites itself in magic mode #2921

Open
@firepol

Description

@firepol

We had an old version of paket (v5.89.1) in our Visual Studio 2017 solution placed under .paket/paket.exe .
To integrate paket in our solution we followed the manual setup described here: https://fsprojects.github.io/Paket/bootstrapper.html#Magic-mode
We renamed paket.bootstrapper.exe to paket.exe, and committed that small file in our repo.
Till today everything was working fine, but...

since a few hours (10:00 a.m. UTC time) I notice in git that paket.exe is modified with an 8MB file.

  1. That 8MB seems wrong to me (I never saw it before in the modified files in my git repo).
  2. I replaced the 8MB (v5.124.0) paket.exe file with the v5.124.0 bootstrap version downloaded from the releases (reanamd to paket.exe).

Now when we build our solution in jenkins we get this error:

D:\Jenkins\workspace\ourjob-LYTTIO32I6RRIUVA4EU6K6DDM7HAHVCU7X7IELNVOBPILBIV7M2A\src\.paket\paket.targets(65,5): error MSB3073: The command ""D:\Jenkins\workspace\ourjob-LYTTIO32I6RRIUVA4EU6K6DDM7HAHVCU7X7IELNVOBPILBIV7M2A\src\.paket\paket.exe" restore --references-file "D:\Jenkins\workspace\ourjob-LYTTIO32I6RRIUVA4EU6K6DDM7HAHVCU7X7IELNVOBPILBIV7M2A\src\OurProject\paket.references"" exited with code -2146232576. [D:\Jenkins\workspace\ourjob-LYTTIO32I6RRIUVA4EU6K6DDM7HAHVCU7X7IELNVOBPILBIV7M2A\src\OurProject\OurProject.csproj]

Expected behaviors:

  • magic mode should have worked as it worked so far, not overwriting our paket.exe file and forcing us to replace it again with the bootstrap.
  • the newest paket.exe bootstrap should keep restoring the nuget packages as it always did, not throwing that error.

Maybe you are aware of this, but we didn't really see an issue for this, thus I'm filing it for reference, hope this helps. Cheers.

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