Skip to content

Commit 6e5de38

Browse files
Freddy Kristiansenfreddydk
andauthored
Bug fixes (#3596)
Fixes #3594 Displays apps not included in Sort-AppFiles (Issue [1131 ](microsoft/AL-Go#1131) in AL-Go repo) --------- Co-authored-by: freddydk <[email protected]>
1 parent 0618f7a commit 6e5de38

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

AppHandling/Run-AlCops.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,14 @@ function Run-AlCops {
123123

124124
$artifactUrl = Get-BcContainerArtifactUrl -containerName $containerName
125125
$artifactVersion = [System.Version]$artifactUrl.Split('/')[4]
126-
$latestSupportedRuntimeVersion = RunAlTool -arguments @('GetLatestSupportedRuntimeVersion',"$($artifactVersion.Major).$($artifactVersion.Minor)")
127-
Write-Host "Latest Supported Runtime Version: $latestSupportedRuntimeVersion"
126+
$latestSupportedRuntimeVersion = ''
127+
try {
128+
$latestSupportedRuntimeVersion = RunAlTool -arguments @('GetLatestSupportedRuntimeVersion',"$($artifactVersion.Major).$($artifactVersion.Minor)")
129+
Write-Host "Latest Supported Runtime Version: $latestSupportedRuntimeVersion"
130+
}
131+
catch {
132+
Write-Host -ForegroundColor Yellow "Cannot determine latest supported runtime version, will skip runtime version compatibility check"
133+
}
128134

129135
$global:_validationResult = @()
130136
$apps | ForEach-Object {

AppHandling/Sort-AppFilesByDependencies.ps1

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,14 @@ function Sort-AppFilesByDependencies {
178178
if ($includeOnlyAppIds) {
179179
$script:sortedApps | ForEach-Object { $_ | Add-Member -NotePropertyName 'Included' -NotePropertyValue $false }
180180
$includeOnlyAppIds | ForEach-Object { MarkSortedApps -AppId $_ }
181-
$script:sortedApps | Where-Object { $_.Included } | ForEach-Object {
182-
$files["$($_.id):$($_.version)"]
181+
$script:sortedApps | ForEach-Object {
182+
if ($_.Included) {
183+
$files["$($_.id):$($_.version)"]
184+
}
185+
else {
186+
$appName = [System.IO.Path]::GetFileName($files["$($_.id):$($_.version)"])
187+
Write-Host "$appName (AppId=$($_.id)) is skipped as it is not referenced"
188+
}
183189
}
184190
}
185191
else {

ReleaseNotes.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
6.0.20
2+
Add trustServerCertificate is the parameter exists in various functions that might be running on the host
3+
Issue #3594 Run-AlCops says unknown platform version
4+
Add information about apps excluded due to not being referenced during Publish-BcContainerApp
25

36
6.0.19
47
Issue #3560 Backup-BcContainerDatabases fails - password must be marked as read only bug

0 commit comments

Comments
 (0)