-
Notifications
You must be signed in to change notification settings - Fork 585
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
FAKE CLI overwrites Paket.Restore.targets with an old one, which breaks .NET Core Paket #2181
Comments
Yes one "fix" would be to just release a new fake runtime with updated paket.core version. |
So the first thing FAKE CLI does is |
not do what? paket restore is needed for the fake modules to be available. |
True, I forgot about that. Is there any other workaround I could use now? Not sure how to work around this on my build agents. And Paket using Mono throws all kinds of Mono Exceptions for some reason (only on my linux build agents). |
Could FAKE CLI not update |
easy workaround is to undo pending changes with git in your fake script ;) |
Moving |
Right, guess there's a FAKE package for interop with git |
Yes but we need to think if that breaks some use-cases, the best scenario is to use a compatible paket version (which can be seen in Fake.Runtime package dependencies), so currently that is usually updating paket is fine but in scenarios like this things can happen (but I don't consider this a bug) |
Workaround of the century: Target.create "ResetPaketTargets" (fun _ ->
CommandHelper.gitCommand "." "checkout .paket/Paket.Restore.targets") |
So this would mean that every time |
I said it usually works but it is not a supported scenario :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Fixed with 4a92098 With 5.10 fake will warn if there is a paket <-> fake version mismatch and fake will suggest the version to use. The hint can be ignored but then stuff like this issue will happen. Usually I'll try to keep up with paket releases as long as they are compatible with the fake test-suite. |
same issue here, can we try to keep up with version which include and same workaround needs to be added when using with docker. e.g. : causiq/logary#386
|
@lust4life I'm open for suggestions for a "better" fix
I try to keep up with paket but in no scenario I'm as fast as @forki |
Description
I'm trying to use the newly released .NET Core Paket in combination with FAKE5 CLI, however, FAKE seems to do a
paket restore
which overwritesPaket.Restore.targets
with an old one which does not support netcore Paket.It does not happen every time, only when I see the line
Starting full restore process.
in the console, which seems to come from FAKE CLI. It works fine if I seeThe last restore is still up to date. Nothing left to do.
Repro steps
Please provide the steps required to reproduce the problem
Step A
git clone https://github.com/atlemann/NetCorePaketFake
Step B
./build.sh
orbuild.cmd
Expected behavior
Paket to be bootstrapped and the build to succeed.
Actual behavior
Paket.Restore.targets
is overwritten with an old one and I get the following output:Known workarounds
build.cmd
Paket.Restore.targets
build.cmd
Workaround in script:
Related information
Windows 10, Ubuntu
Indications of severity
Blocking: Cannot use FAKE5 CLI with .NET Core PaketVersion of FAKE (4.X, 5.X)
FAKE 5
The text was updated successfully, but these errors were encountered: