Open Arthurvdv opened 2 months ago
The problem is in the pre-release version of the AL Language extension. The altool is now altool.dll (which seems to be wrong) - I will report this. In the meantime, I have changed BcContainerHelper to use the latest version as the default instead of the pre-release.
Thank you for resolving this so quickly!
I can confirm changing to to latest version (instead of the pre-release) has resolved this issue.
Unfortunately the release of the AL Language v14.0.1161190 today, has reoccurred this issue.
Starting: Generate NuGet Package
==============================================================================
Task : PowerShell
Description : Run a PowerShell script on Linux, macOS, or Windows
Version : 2.245.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
==============================================================================
Generating script.
========================== Starting Command Output ===========================
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command . '/home/vsts/work/_temp/a14d4cd2-5a82-404a-8872-b8df890c8d61.ps1'
**************************************
* App File = [VanRoey_<redacted>_24.0.168095.0_sandbox_25.0_be.app]
Get-AppJsonFromAppFile -appFile VanRoey_<redacted>_24.0.168095.0_sandbox_25.0_be.app
BcContainerHelper version 6.0.24
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Linux, PowerShell 7.4.5
Downloading AL Language Extension to /home/vsts/.bccontainerhelper/alLanguageExtension/14.0.1161190.zip
using Expand-Archive
/usr/bin/chmod: cannot access '/home/vsts/.bccontainerhelper/alLanguageExtension/14.0.1161190/extension/bin/linux/altool': No such file or directory
Exception: /home/vsts/.local/share/powershell/Modules/BcContainerHelper/6.0.24/HelperFunctions.ps1:129
Line |
129 | … throw "Command $command not found, you might need to inst …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Command
| /home/vsts/.bccontainerhelper/alLanguageExtension/14.0.1161190/extension/bin/linux/altool not found, you might need to install that command.
##[error]PowerShell exited with code '1'.
Finishing: Generate NuGet Package
Latest BcContainerHelper - 6.0.25 is able to work with AL Language extensions with no executables - please grab that and retry.
Describe the issue With the release
v15.0.1143290
of the AL Language, it seems that the altool binary for Linux is missing./home/vsts/.bccontainerhelper/alLanguageExtension/15.0.1143290/extension/bin/linux/altool not found
In our Azure DevOps pipelines we use the
New-BcNuGetPackage
andPush-BcNuGetPackage
on a ubuntu-latest Hosted Agent.Scripts used to create container and cause the issue
Full output of scripts