-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Make does not work on Windows #1596
Comments
Thanks for the bug report! Since the sbt file can contain arbitrary Scala, we can probably use Do you want to give it a try, @p-offtermatt? |
I'm curious, the |
Yes, tar is available by default on my machine. |
I adjusted this, but it appears to have a problem with privileges, giving me an error message:
This curiously occurs even with Powershell started as an administrator.
|
Looks like it's UAC-related? https://stackoverflow.com/q/23217460 |
Thanks for the pointer! |
FWIW, your code works on macOS ;) |
I was able to run this after disabling UAC, by editing the registry key |
Running
sbt apalacheCurrentPackage
gives an error on Windows 11:It is caused by the line
s"ln -sfn ${unzipped} ${current_pkg}" ! log
https://github.com/informalsystems/apalache/blob/c9bc39b9543413c94e38eb349c5a560b8407a28a/build.sbt#L295
On Windows, ln does not exist, see https://superuser.com/questions/182553/does-windows-have-the-ln-s-or-equivalent
Changing the line to this (seems to) work:
s"cmd /c mklink /D ${current_pkg} ${unzipped}" ! log
Potentially one could detect the OS and execute a different command depending on it
The text was updated successfully, but these errors were encountered: