Closed xrow closed 1 week ago
@xrow Thank you from filing the bug.
Please confirm the PowerShell version you are using.
Die Benennung "Test-Json" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausführbaren Programms erkannt...
Could repro.
@tinamor - please check if this could have been missed line during your code refactoring. I think Test-Json
turned to Test-JSONChecksum
?
Will need to fix the tests too - https://github.com/search?q=repo%3Amicrosoft%2Fcontainers-toolkit%20Test-Json&type=code
ok will do nothing for now...
@profnandaa The issue is caused by: https://github.com/microsoft/containers-toolkit/blob/aeaf32e5ff2586b458e9afeb28165ff9651c035b/containers-toolkit/Private/CommonToolUtilities.psm1#L366
The cmdlet Test-JSON
is only available from PowerShell version 6.1
@xrow Please provide the PowerShell version you are using.
We will add in the documentation that this module requires PowerShell version 7 and above.
@profnandaa
Here is a test conatiner:
https://gitlab.com/xrow-public/helm-azure-devops-agent/-/blob/main/container/agent-windows-ltsc2022/Containerfile?ref_type=heads#L15 <- powershell version 7.2.18
The prove it is 7.2.18
https://gitlab.com/xrow-public/helm-azure-devops-agent/-/jobs/7694482617#L62
@xrow PR to resolve this issue has been merged. Closing the issue. Please feel free to reopen this issue or file a new one if the issue has not been resolved.
Describe the bug
https://gitlab.com/xrow-public/helm-azure-devops-agent/-/jobs/7569610009#L128
Please file a single issue per bug instead of enumerating multiple items.
To Reproduce
Detailed steps to reproduce the behavior:
The more information you can provide, the more likely someone will be successful at triaging and reproducing the issue and finding a fix.
Expected behavior
no error
Actual behavior
error on buildkit install
Screenshots
System information
Windows build and Version
Hostname: SURFACE-BJOERN Betriebssystemname: Microsoft Windows 11 Pro Betriebssystemversion: 10.0.22631 Nicht zutreffend Build 22631 Betriebssystemhersteller: Microsoft Corporation Betriebssystemkonfiguration: Eigenständige Arbeitsstation Betriebssystem-Buildtyp: Multiprocessor Free Registrierter Benutzer: bjoern Registrierte Organisation: Nicht zutreffend Produkt-ID: 00330-66905-91196-AAOEM Ursprüngliches Installationsdatum: 12.12.2022, 07:09:00 Systemstartzeit: 19.07.2024, 10:14:55 Systemhersteller: Microsoft Corporation Systemmodell: Surface Pro 9 Systemtyp: x64-based PC Prozessor(en): 1 Prozessor(en) installiert. 01: Intel64 Family 6 Model 154 Stepping 4 GenuineIntel ~1826 MHz BIOS-Version: Microsoft Corporation 14.101.143, 29.02.2024 Windows-Verzeichnis: C:\Windows System-Verzeichnis: C:\Windows\system32 Startgerät: \Device\HarddiskVolume1 Systemgebietsschema: de;Deutsch (Deutschland) Eingabegebietsschema: de;Deutsch (Deutschland) Zeitzone: (UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien Gesamter physischer Speicher: 32.592 MB Verfügbarer physischer Speicher: 5.329 MB Virtueller Arbeitsspeicher: Maximale Größe: 48.051 MB Virtueller Arbeitsspeicher: Verfügbar: 10.333 MB Virtueller Arbeitsspeicher: Zurzeit verwendet: 37.718 MB Auslagerungsdateipfad(e): C:\pagefile.sys Domäne: WORKGROUP Anmeldeserver: \SURFACE-BJOERN Hotfix(es): 5 Hotfix(e) installiert.
Netzwerkkarte(n): 6 Netzwerkadapter installiert. 01: Intel(R) Wi-Fi 6E AX211 160MHz Verbindungsname: WLAN DHCP aktiviert: Ja DHCP-Server: 192.168.88.1 IP-Adresse(n)
Anforderungen für Hyper-V: Es wurde ein Hypervisor erkannt. Features, die für Hyper-V erforderlich sind, werden nicht angezeigt. PS C:\Windows\system32> ```