Fixed failure loading VstsTaskSdk #361 (#362)

This commit is contained in:
Bernie White 2022-04-09 16:51:38 +10:00 коммит произвёл GitHub
Родитель 84ed37d3bd
Коммит 3fb8858f82
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 28 добавлений и 2 удалений

Просмотреть файл

@ -29,6 +29,8 @@ What's changed since v1.5.0:
- Configure repository to install modules from the named repository.
- General improvements:
- Expose more rule error output in CI. [#308](https://github.com/microsoft/PSRule-pipelines/issues/308)
- Bug fixes:
- Fixed failure loading VstsTaskSdk. [#361](https://github.com/microsoft/PSRule-pipelines/issues/361)
## v1.5.0

Просмотреть файл

@ -33,7 +33,7 @@ async function run() {
// Import SDK
contents.push(`$rootPath = '${__dirname}';`);
contents.push(`$sdkPath = Join-Path -Path $rootPath -ChildPath 'ps_modules/VstsTaskSdk';`);
contents.push(`Import-Module $sdkPath -ArgumentList @{ NonInteractive = 'true' }`);
contents.push(`Import-Module $sdkPath -ArgumentList @{ NonInteractive = 'true' } -ErrorAction Stop`);
// Prepare parameters
contents.push(`$scriptParams = @{ Path = '${input_path}'; InputType = '${input_inputType}'; InputPath = '${input_inputPath}' };`);

Просмотреть файл

@ -25,7 +25,7 @@ async function run() {
// Import SDK
contents.push(`$rootPath = '${__dirname}';`);
contents.push(`$sdkPath = Join-Path -Path $rootPath -ChildPath 'ps_modules/VstsTaskSdk';`);
contents.push(`Import-Module $sdkPath -ArgumentList @{ NonInteractive = 'true' }`);
contents.push(`Import-Module $sdkPath -ArgumentList @{ NonInteractive = 'true' } -ErrorAction Stop`);
// Prepare parameters
contents.push(`$scriptParams = @{ };`);

Просмотреть файл

@ -55,6 +55,10 @@
"path": "ps_modules/PSRule/1.11.1",
"packagePath": "/ps-rule-assert/ps-rule-assertV0/ps_modules/PSRule/1.11.1"
},
{
"path": "ps_modules/VstsTaskSdk",
"packagePath": "/ps-rule-assert/ps-rule-assertV0/ps_modules/VstsTaskSdk"
},
{
"path": "ps_modules/PowerShellGet",
"packagePath": "/ps-rule-install/ps-rule-installV0/ps_modules/PowerShellGet"
@ -63,10 +67,18 @@
"path": "ps_modules/PackageManagement",
"packagePath": "/ps-rule-install/ps-rule-installV0/ps_modules/PackageManagement"
},
{
"path": "ps_modules/VstsTaskSdk",
"packagePath": "/ps-rule-install/ps-rule-installV0/ps_modules/VstsTaskSdk"
},
{
"path": "ps_modules/PSRule/1.11.1",
"packagePath": "/ps-rule-assert/ps-rule-assertV1/ps_modules/PSRule/1.11.1"
},
{
"path": "ps_modules/VstsTaskSdk",
"packagePath": "/ps-rule-assert/ps-rule-assertV1/ps_modules/VstsTaskSdk"
},
{
"path": "ps_modules/PowerShellGet",
"packagePath": "/ps-rule-install/ps-rule-installV1/ps_modules/PowerShellGet"
@ -75,6 +87,10 @@
"path": "ps_modules/PackageManagement",
"packagePath": "/ps-rule-install/ps-rule-installV1/ps_modules/PackageManagement"
},
{
"path": "ps_modules/VstsTaskSdk",
"packagePath": "/ps-rule-install/ps-rule-installV1/ps_modules/VstsTaskSdk"
},
{
"path": "modules.json",
"packagePath": "/ps-rule-assert/ps-rule-assertV2/modules.json"
@ -83,6 +99,10 @@
"path": "ps_modules/PSRule/2.0.0",
"packagePath": "/ps-rule-assert/ps-rule-assertV2/ps_modules/PSRule/2.0.0"
},
{
"path": "ps_modules/VstsTaskSdk",
"packagePath": "/ps-rule-assert/ps-rule-assertV2/ps_modules/VstsTaskSdk"
},
{
"path": "ps_modules/PowerShellGet",
"packagePath": "/ps-rule-install/ps-rule-installV2/ps_modules/PowerShellGet"
@ -90,6 +110,10 @@
{
"path": "ps_modules/PackageManagement",
"packagePath": "/ps-rule-install/ps-rule-installV2/ps_modules/PackageManagement"
},
{
"path": "ps_modules/VstsTaskSdk",
"packagePath": "/ps-rule-install/ps-rule-installV2/ps_modules/VstsTaskSdk"
}
],
"contributions": [