Skip to content
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

Inconsistent error with restore--reference-files #762

Closed
halcwb opened this issue Apr 9, 2015 · 3 comments
Closed

Inconsistent error with restore--reference-files #762

halcwb opened this issue Apr 9, 2015 · 3 comments

Comments

@halcwb
Copy link
Contributor

halcwb commented Apr 9, 2015

Using paket in a multiproject solution (42), I get inconsistent errors when trying to build the solution using Fake. When I perform the build manually directly from VS, everything runs fine. However, when using Fake, building the projects after each other or just using the solution file to build, sometimes it runs and exits OK, but mostly I run into the below sort of errors:

c:\Users\hal\Dropbox\Development\GenPres.paket\paket.targets(36,5): error MSB3
073: The command ""c:\Users\hal\Dropbox\Development\GenPres.paket\paket.exe" r
estore --references-files "c:\Users\hal\Dropbox\Development\GenPres\src\Informe
dica.Utils\paket.references"" exited with code 1. [c:\Users\hal\Dropbox\Develop
ment\GenPres\src\Informedica.Utils\Informedica.Utils.fsproj]
Running build failed.
Error:
Building c:\Users\hal\Dropbox\Development\GenPres\src\Informedica.GenPres.MvcWeb
\Informedica.GenPres.MvcWeb.csproj failed with exitcode 1.

The project with error can vary. So, there seems to be some sort of race condition in which the paket.references file is still locked by a competing restore-references process?

@forki
Copy link
Member

forki commented Apr 9, 2015

mhm. yep I've seen this too. I'm not completely sure why this is happening.

In general I think paket should not be called during a FAKE compile target. We usually run the restore in a separate target at the beginning. I think we need to find a way to set https://github.com/fsprojects/Paket/blob/master/.paket/paket.targets#L5 to false during FAKE runs. This would probably also help @Thorium with #759

@forki
Copy link
Member

forki commented Apr 9, 2015

fsprojects/FAKE#753 could work.

@halcwb
Copy link
Contributor Author

halcwb commented Apr 10, 2015

@forki, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants