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

[Bug] k9s fails to update/install to latest version on Win 11 #831

Closed
2 of 6 tasks
michaelgracious opened this issue Apr 5, 2024 · 2 comments
Closed
2 of 6 tasks

Comments

@michaelgracious
Copy link

michaelgracious commented Apr 5, 2024

What were you trying to install (or what else went wrong)?

Trying to install latest version of k9s

What exactly did you do?

PS C:\Users\thul> webi k9s@latest

Welcome to Webi! - Instant Installs, Easy to Remember URLs
(PowerShell+curl Windows/10+ AMD64 msvc)


Installing k9s@latest
    Fetching install script ...
    Updating C:\Users\thul\.local\tmp\[email protected]
    Downloading from
      https://webinstall.dev/api/installers/[email protected]
        ?formats=zip,exe,tar,git&libc=msvc
      Saved C:\Users\thul\.local\tmp\[email protected]
Installing k9s
Unpacking C:\Users\thul\Downloads\webi\k9s_Windows_amd64.zip
Install Location: C:\Users\thul\.local\opt\k9s-v0.32.4\bin\k9s.exe
Copying into 'C:\Users\thul\.local\bin\k9s.exe' from 'C:\Users\thul\.local\opt\k9s-v0.32.4\bin\k9s.exe'

Checking for updates to Webi ...
    Updating C:\Users\thul\.local\bin\webi-pwsh.ps1
    Downloading from
      https://webinstall.dev/packages/webi/webi-pwsh.ps1
      Saved C:\Users\thul\.local\bin\webi-pwsh.ps1

***********************************
*      IMPORTANT -- READ ME       *
*  (run the PATH commands below)  *
***********************************


Copy, paste, and run the appropriate commands to update your PATH:

cmd.exe:
    (close and reopen the terminal)

PowerShell:
    $UserPath = [Environment]::GetEnvironmentVariable('Path', 'User')
    $MachinePath = [Environment]::GetEnvironmentVariable('Path', 'Machine')
    $Env:Path = "${UserPath};${MachinePath}"
    (or close and reopen the terminal)

PS C:\Users\thul>

What went wrong?

It says its downloading and installing 0.32.4, but in reality when i start k9s i get 0.28.2 even after removing the k9s.exe from the bin directory. I have removed it, tried to run k9s, got an error that it didn't exist. Good, reinstalled it and expecting 0.32.4, but got 0.28.2 instead

Note, this is using cmd.exe cause powershell refuses to install anything for me (different bug posted)

Which OS did you try on?

  • Mac
  • Windows
  • Linux

What type of computer (i.e. laptop, desktop, Raspberry Pi)?

  • Laptop or Desktop (amd64 / x86-64)
  • Raspberry Pi (ARM-64)
  • Other (please specify, if you know)
@michaelgracious michaelgracious added the bug Something isn't working label Apr 5, 2024
@coolaj86
Copy link
Member

Same as #832.

The latest Windows 11 PowerShell has a new security policy which blocks users from running unsigned scripts by default.

Investigating...

@coolaj86
Copy link
Member

coolaj86 commented Jun 3, 2024

The current workaround is this:

Run webi from PowerShell Classic or cmd.exe

Do NOT run webi from PowerShell Core

I'm investigating how to support PowerShell Core and PowerShell Classic at the same time, but it's not looking good.

@coolaj86 coolaj86 closed this as completed Jun 3, 2024
@coolaj86 coolaj86 added has-workaround and removed bug Something isn't working labels Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants