-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Move bat script over to ps1 script #2192
Comments
-1 Bat was working in all environments without problems. With the last 2.6.1 migration to 2.7.0 now Lein is broken because of PS use.
|
As aadrian noted, PowerShell requires special "ExecutionPolicy" permissions to run scripts. Setting that special permission is easy , but it potentially requires "Administrator" privileges, which ordinary users do not have in many corporate and (most especially) government environments. I ran into the same error message as aadrian when I ran the 2.7.0 bat file. However, my corporate environment does allow PowerShell, so I just downloaded the PS1 file from GitHub, then ran Set-ExcutionPolicy from an "Administrator" shell, and all was good (well, except for the issue I reported just now, but I fixed that too). |
ah, darn, I'll push out a bugfix which resolves the lein.bat breakage asap. Is the issue that powershell itself is too restricted, or is the issue the execution policy of powershell? And if so, are there any ways to get around that? One of the reasons we wanted to go over to ps was because it handled downloading much better for us, but if powershell or the execution policy isn't widely available then powershell doesn't sound like a viable replacement at this point. |
A normal |
@hypirion Thank you. It works again now. The |
@hypirion I have to rectify. After testing it on more machines, unfortunately the Windows version does not work without PowerShell - even if Curl is in the path :(. Also tried with the new 2.7.1
|
With the pull request #2174 we're not far away from replacing the batch script with powershell. This will require some investigation to keep the usability good (or at least alright):
The text was updated successfully, but these errors were encountered: