Package Details: powershell 7.5.0-1

Git Clone URL: https://aur.archlinux.org/powershell.git (read-only, click to copy)
Package Base: powershell
Description: A cross-platform automation and configuration tool/framework
Upstream URL: https://microsoft.com/PowerShell
Keywords: automation dotnet microsoft net powershell script scripting shell
Licenses: MIT
Submitter: jsteel
Maintainer: yataro
Last Packager: yataro
Votes: 84
Popularity: 0.133930
First Submitted: 2016-11-26 22:16 (UTC)
Last Updated: 2025-01-31 11:17 (UTC)

Latest Comments

1 2 3 4 5 6 .. 21 Next › Last »

yataro commented on 2025-01-31 11:18 (UTC)

After updating to 7.5.0 some more failing tests popped up. I can't handle it at the moment. If someone wants to step-in, your patch will be appreciated

cozzos84 commented on 2025-01-23 13:13 (UTC) (edited on 2025-01-23 13:15 (UTC) by cozzos84)

@yataro

Thanks! it works!!! :) Thank you for your patience and kindness!!

[mypc ~ ] > pwsh -V
PowerShell 7.4.6-0-g81930547a20205e5bfed32c66ab6fed50d6e2008

yataro commented on 2025-01-23 13:00 (UTC) (edited on 2025-01-23 13:01 (UTC) by yataro)

You can skip tests with makepkg --nocheck, they are optional. The log you provided doesn't include the test failed (and these warning are expected), it should be marked with [-]

cozzos84 commented on 2025-01-23 12:32 (UTC)

Thanks @yataro

Making exit with error:

Tests completed in 345.72s                                                                                              
Tests Passed: 6943, Failed: 1, Skipped: 6762, Pending: 201, Inconclusive: 2 
==> ERROR: A failure occurred in check().

I suppose this error:

Push-Location: /home/rardcode/.local/src/powershell/src/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystemProviderExtended.Tests.ps1:666
Line |
 666 |          Push-Location $rootDir
     |          ~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'TestDrive:/TestDir' because it does not exist.
WARNING: Context 'Environment provider': Tags are only effective on the outermost test group, for now.
New-Item: /home/rardcode/.local/src/powershell/src/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1:243
Line |
 243 |              New-Item -Path 'TestDrive:\' -Name 'Directory1' -ItemType …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | An item with the specified name /tmp/5af17be1-9ca0-4358-b6b4-a6e73cb0a424/Directory1 already exists.
New-Item: /home/rardcode/.local/src/powershell/src/PowerShell/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Location.Tests.ps1:259
Line |
 259 |              New-Item -Path 'TestDrive:\Directory1' -Name 'Directory2' …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | An item with the specified name /tmp/5af17be1-9ca0-4358-b6b4-a6e73cb0a424/Directory1/Directory2 already exists.
WARNING: This module is use-at-your-own-risk.
It exists to test PowerShell Core builds and is not supported by Microsoft.
Please report any issues at https://github.com/rjmholt/SelfSignedCertificate.
Certificate written to /tmp/ServerCert.pfx
WARNING: Parameter 'EmailAddress' is obsolete. The email name component is deprecated by the PKIX standard
Certificate written to /tmp/ClientCert.pfx
New-Item: /home/rardcode/.local/src/powershell/src/PowerShell/test/powershell/Modules/Microsoft.PowerShell.PSResourceGet/Microsoft.PowerShell.PSResourceGet.Tests.ps1:58
Line |
  58 |      New-Item -Path $script:ProgramFilesScriptsInfoPath -ItemType Dire …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Access to the path '/usr/local/share/powershell' is denied.

But is not important...i wait dotnet-sdk package upgrade in Manjaro repo!

yataro commented on 2025-01-23 11:36 (UTC)

Try with this patch

diff --git a/PKGBUILD b/PKGBUILD
index 67fea74..8dfee3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,7 +39,7 @@ noextract=('pester.4.10.1.nupkg')
 sha256sums=('38671446c6944fa0d7238dc8c571390a18a9070d55bd360bcc1dbc26b7073b28'
             '0c81200e5211a2f63bc8d9941432cbf98b5988249f0ceeb1f118a14adddbaa8e'
             '6c996dc4dc8bef068cefb1680292154f45577c66fb0600dd0fb50939bbf8a3a3'
-            '0c752fdfef3695109f27bb3fc8ecd9722e44ac7c21e9233a11a88bb8124e312d'
+            'c17b453dd301687cddc9d532cb3ecbb5f92d75143c55b9fb2a3073fbe8d3c438'
             '2d1947012cc4b98f1a258730b0b44dad7ae481de19b424131e0dd10f2c30b340'
             '339207f86fa709d801ae64db739eafb4850fb53e4feece52db53920fa9896aa7')

diff --git a/dotnet-sdk-version.patch b/dotnet-sdk-version.patch
index a36c4ab..cf329c1 100644
--- a/dotnet-sdk-version.patch
+++ b/dotnet-sdk-version.patch
@@ -5,7 +5,7 @@ diff -r --unified PowerShell.old/global.json PowerShell.new/global.json
  {
    "sdk": {
 -    "version": "8.0.403"
-+    "version": "8.0.111",
++    "version": "8.0.0",
 +    "rollForward": "latestFeature"
    }
  }

cozzos84 commented on 2025-01-23 11:31 (UTC)

@yataro No change after pacman -Syu :(

Yes, my distro is Manjaro.

yataro commented on 2025-01-23 11:20 (UTC)

Is your package database outdated or do you use some derivative distro (not Arch Linux)? Try to run pacman -Syu first

cozzos84 commented on 2025-01-23 07:46 (UTC) (edited on 2025-01-23 07:46 (UTC) by cozzos84)

@yataro

You need to update dotnet-sdk, it is 8.0.11.sdk111 in repos

How can I force the 8.0.11.sdk111-1? When I install powershell it automatically takes me the 8.0.11.sdk110 :(

:: (1/1) Analisi SRCINFO: powershell
:: Sincronizzazione dei database in corso...
 core è aggiornato
 extra è aggiornato
 community è aggiornato
 multilib è aggiornato
:: Aggiornamento del sistema in corso...
risoluzione delle dipendenze in corso...
ricerca dei pacchetti in conflitto in corso...

Pacchetti (3) dotnet-targeting-pack-8.0.10.sdk110-1  netstandard-targeting-pack-8.0.10.sdk110-1  dotnet-sdk-8.0.10.sdk110-1

Dimensione totale dei pacchetti da scaricare:    92,93 MiB
Dimensione totale dei pacchetti da installare:  362,92 MiB

:: Vuoi procedere con l'installazione? [S/n]

yataro commented on 2025-01-23 06:57 (UTC)

Thank you, this is indeed educating, I will keep this in mind for my future PKGBUILDs

patlefort commented on 2025-01-23 06:43 (UTC)

prepare() and build() can be run separately with 2 invocation of makepkg. I have good reasons to do so in pat-aur. For example, I have to run prepare() before I can run pkgver() and get an updated version so I can check if a rebuild is needed. I would rather not have to run prepare() twice.