-
Notifications
You must be signed in to change notification settings - Fork 10
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
[Bug] Execution policy error with scoop
#357
Comments
@dragonmkww IIRC
The problem turns out to be the difference between |
scoop
This comment was marked as duplicate.
This comment was marked as duplicate.
@dragonmkww I'm not actively using Windows for the moment, but For the implementation details, all is in The subprocess call is represented simply with a slice of strings: Line 180 in 2804f72
Interestingly, the first time I tried to add support for pacaptr/src/package_manager/scoop.rs Line 154 in 2e2b797
Please also notice that our CI tests are working alright, and I did make sure that pacaptr/.github/workflows/test.yml Lines 32 to 60 in 2804f72
|
@dragonmkww You can also do Thanks in advance :) Possibly related: |
Ok, I'll try to experiment on that! My windows version is: Microsoft
Windows 11 Home, Version 10.0.22000 Build 22000
My system type is: x64
My powershell version is: PowerShell v7.2.2
Do you think you could change the call to begin with scoop, just to try it
out? Thank you, I really want to get this fixed because it looks so cool!
…On Mon, Apr 18, 2022 at 6:02 PM Gen Li ***@***.***> wrote:
@dragonmkww <https://github.com/dragonmkww>
Also, please indicate your Windows version, the powershell version (32/64
bit and version number), so that we can rule out the situation in which the
powershell you ran and the powershell I launched weren't the same thing.
—
Reply to this email directly, view it on GitHub
<#357 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW37P6XT3QEJL2QOFYUQC5DVFXLXJANCNFSM5TULM35A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This comment was marked as duplicate.
This comment was marked as duplicate.
@dragonmkww It will be nice however if you can fork this repository and clone it, see what will work for you, and make a Pull Request back. Of course, I'll be continuing my investigation on my side, but don't expect it to happen very soon. Have a nice day, and good luck with the fix :D |
scoop
scoop
@dragonmkww
Thanks in advance. |
Rough guess: since you're using PowerShell Core 7.x.x, its executable is named I suggest @rami3l try using |
@dragonmkww Get-ExecutionPolicy -List and powershell Get-ExecutionPolicy -List . If that is the case, please make sure that you indeed ran Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser in Many thanks to both of you! If this indeed closes this issue, I'll include an update in the README describing this |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Closing as it's not a bug. |
Thanks!
…On Tue, Apr 19, 2022 at 3:54 PM Gen Li ***@***.***> wrote:
Closing as it's not a bug.
—
Reply to this email directly, view it on GitHub
<#357 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AW37P6WR2Z5TYE6J2YYP4GDVF4FO5ANCNFSM5TULM35A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
And, I am in powershell not pwsh
…On Tue, Apr 19, 2022 at 3:42 PM Frostbite209 ***@***.***> wrote:
Literally just take powershell out of the call and it should be fine, pwsh
doesn't work either. My execution policy error is:
pacman -Syu
Running `powershell scoop update`
scoop : File C:\Users\ctayl\scoop\shims\scoop.ps1 cannot be loaded. The
file C:\Users\ctayl\scoop\shims\scoop.ps1 is
not digitally signed. You cannot run this script on the current system.
For more information about running scripts and
setting execution policy, see about_Execution_Policies at https:/
go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
+ scoop update
+ ~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
Error Subprocess exited with code 1
I you take powershell out of the call it works fine! Scoop is an
executable process, for example:
powershell scoop update = Execution policy error.
scoop update = Works perfectly!
I promise you that if you remove powershell from the call, it would work
fine. It doesn't matter the version or the .NET framework, it's just the
fact that powershell scoop update is not the right command. The correct
command is scoop update. Please just try removing powershell from the
call!
On Tue, Apr 19, 2022 at 3:51 AM Gen Li ***@***.***> wrote:
> @dragonmkww <https://github.com/dragonmkww>
> If @lynzrand <https://github.com/lynzrand> got it right, I assume you'll
> get different outputs for Get-ExecutionPolicy -List and powershell
> Get-ExecutionPolicy -List, and if that is the case, please ensure that
> you indeed ran Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope
> CurrentUser *in powershell and not pwsh*.
>
> —
> Reply to this email directly, view it on GitHub
> <#357 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AW37P6QCSBGCXO6BRCNI5DTVFZQWTANCNFSM5TULM35A>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
I installed this with scoop, and set the alias "pacman" for "pacaptr". When I run "pacman -Syu" which should run "scoop update" it instead runs "powershell scoop update". This gives me an Execution Policy error and says that the file "C:\Users<user>\scoop\shims\scoop.ps1" is not digitally signed. My Execution Policy is set to "Bypass" so this error should never happen, right? Can you please help me fix this, because this looks really cool and I would love to try it out!
The text was updated successfully, but these errors were encountered: