Skip to content

Commit 7ae117d

Browse files
committed
set psmodulepath to fix the pwsh7.4 issue
1 parent e1fcc05 commit 7ae117d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builder/actions/setup_cross_ci_helpers.py

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def create_windows_cert_store(env, certificate_env, location_env):
2323
# Import the PFX into the Windows Certificate Store
2424
# (Passing '$mypwd' is required even though it is empty and our certificate has no password. It fails CI otherwise)
2525
import_pfx_arguments = [
26+
"$env:PSModulePath = '';",
2627
"Import-PfxCertificate",
2728
"-FilePath", pfx_cert_path,
2829
"-CertStoreLocation", windows_certificate_folder]

0 commit comments

Comments
 (0)