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] Scoop Select-CurrentVersion error on ltsc2019 Windows Images #6180

Open
peterzhuamazon opened this issue Oct 11, 2024 · 2 comments · Fixed by opensearch-project/opensearch-build#5093
Labels

Comments

@peterzhuamazon
Copy link

peterzhuamazon commented Oct 11, 2024

Bug Report

Current Behavior

Scoop 0.5.0+: https://build.ci.opensearch.org/job/docker-build/5918/console

PS C:\> scoop bucket add java
�[91mSelect-CurrentVersion : The term 'Select-CurrentVersion' is not recognized as 
the name of a cmdlet, function, script file, or operable program. Check the 
�[0m�[91mspelling of the name, or if a path was included, verify that the path is 
�[0m�[91mcorrect and try again.
�[0m�[91mAt C:\Users\ContainerAdministrator\scoop\apps\scoop\current\lib\core.ps1:398 
char:20
�[0m�[91m+         $version = Select-CurrentVersion -App $app -Global:$global
+                    ~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m    + CategoryInfo          : ObjectNotFound: (Select-CurrentVersion:String) [ 
�[0m�[91m   ], CommandNotFoundException
�[0m�[91m    + FullyQualifiedErrorId : CommandNotFoundException
�[0m�[91m 

Expected Behavior

Scoop 0.4.2:

PS C:\> scoop bucket add java
Checking repo... OK
The java bucket was added successfully.

Additional context/output

Run these beforehand:

Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
scoop config no_junction true

Possible Solution

System details

Windows version: [e.g. 7, 8, 10, 11]
10 (ltsc2019)

OS architecture: [e.g. 32bit, 64bit, arm64]
x86_64

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      17763  6414

Additional software: [(optional) e.g. ConEmu, Git]
Only install git before running scoop bucket command.

Scoop Configuration

No specific except:

scoop config no_junction true

@chawyehsu
Copy link
Member

I don't think it bounds to specific Windows LTSC, instead should be all envs with no_junction enabled.

@peterzhuamazon
Copy link
Author

Thanks @chawyehsu do you know when will be a new release?

Thanks.

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

Successfully merging a pull request may close this issue.

2 participants