Skip to content

Commit 93ac2eb

Browse files
authored
Fix CheckRelativePath (#3740)
`Run-AlPipeline` fails with message like: ``` Error: AL1033 An error occurred while loading the included rule set file c:\sources\..\..\..\src\rulesets\ruleset.json - Could not find a part of the path 'c:\src\rulesets\ruleset.json'. ``` E.g. https://github.com/microsoft/BCApps/actions/runs/11567038300/job/32196982417?pr=2272
1 parent f9715e0 commit 93ac2eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AppHandling/Run-AlPipeline.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ Param(
419419
function CheckRelativePath([string] $baseFolder, [string] $sharedFolder, $path, $name) {
420420
if ($path -and $path -notlike 'https://*') {
421421
if (-not [System.IO.Path]::IsPathRooted($path)) {
422-
if (Test-Path -path (Join-Path $baseFolder $path) -PathType Container) {
422+
if (Test-Path -Path (Join-Path $baseFolder $path)) {
423423
$path = Join-Path $baseFolder $path -Resolve
424424
}
425425
else {

0 commit comments

Comments
 (0)