[Idea] Support prerelease NuGet packages in InstallMissingDependencies
#2315
Chris Blank (ChrisBlankDe)
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Idea Description
Summary
AL-Go currently has no way to include prerelease/preview NuGet packages when resolving missing dependencies during a build. Adding a new AL-Go setting —
allowPrereleaseNuGetPackages— would close this gap with minimal effort, since the underlying BcContainerHelper functions already support it.Current behavior
When
InstallMissingDependenciesruns in RunPipeline.ps1, it callsPublish-BcNuGetPackageToContainerandDownload-BcNuGetPackageToFolderwithout passing-allowPrerelease. This means prerelease packages are always excluded, even if the user intentionally publishes prerelease versions to their NuGet feed.Desired behavior
A new boolean AL-Go setting, e.g.:
When set to
true, AL-Go would pass-allowPrereleaseto bothPublish-BcNuGetPackageToContainerandDownload-BcNuGetPackageToFolderinside theInstallMissingDependenciesscriptblock.Motivation / use case
Teams that maintain internal NuGet feeds often publish prerelease packages (e.g.
1.2.3-preview) during development and want CI builds to resolve dependencies against those packages before a stable release is cut. Without this setting, CI fails to find the dependency and the build breaks.Proposed implementation
"allowPrereleaseNuGetPackages" = $falseto the defaults in ReadSettings.psm1."type": "boolean".-allowPrereleaseto$publishParamswhen the setting istrue:The change is fully backwards-compatible — the default is
false, preserving existing behaviour.Contribution (Optional)
All reactions