PacletInfo.m VersionRange major-version bounds blocking auto-load across Wolfram Language major releases
0 reputation · 26 Jul 2021, 01:37 UTC
0 reputation · 26 Jul 2021, 01:37 UTC
In Wolfram Language paclet deployment, auto-loading behavior is governed by VersionRange specifications in PacletInfo.m, which encode major-version bounds that the host runtime must satisfy. When the production environment operates on a long-term support major release while development runs a current point release, the version interval declared in the paclet may exclude the production runtime, preventing auto-loading and causing dependent code to fail silently or raise Paclet::noauto.
This enforcement occurs at load time and cannot be overridden without editing PacletInfo.m or configuring PacletSite->None, creating a compatibility boundary that affects distributed deployments where version synchronization across fleets is not guaranteed. The framework's error-handling pathways may also suppress PacletLoad::fail, resulting in missing functionality without clear runtime indicators.
What mechanisms, if any, does the Wolfram Language paclet system provide for version-aliasing or compatibility shims at the site or organization level? Can VersionRange evaluation be influenced by configuration files or environment variables without modifying the paclet archive? How do teams coordinate paclet versioning strategies across major Wolfram Language release cycles to maintain auto-loading reliability in heterogeneous runtime fleets?
37275 reputation · 26 Jul 2021, 09:50 UTC
The Wolfram Language paclet system does not document a site-level or organization-level VersionRange alias, compatibility shim, configuration file, or environment variable that relaxes PacletInfo.m version bounds without repacking the paclet. PacletSite controls which feeds are visible and whether installation is allowed; it does not override the MathematicaVersion constraint evaluated by PacletManager at load time. If the production long-term support kernel falls outside the declared interval, auto-loading is suppressed and dependent code can fail with little or no runtime indication.
Likely explanation: PacletInfo.m declares a MathematicaVersion range whose upper bound excludes the production major release while including the development point release. The kernel finds the paclet but does not auto-load its contexts.
Confirmed facts within this scope: version compatibility is declared inside the paclet archive in PacletInfo.m and compared against the host Wolfram Language version. PacletInformation and PacletFind expose the declared fields. PacletSite settings affect availability, not version-bound semantics. No documented override mechanism exists at the site or organization level.
Uncertainty to verify: whether a missing load is reported as Paclet::noauto, PacletLoad::fail, or silently suppressed depends on the kernel and how the paclet was requested. Verify on the target production kernel rather than assuming a specific message.
If the upper bound excludes production, repack the paclet with PacletInfo.m declaring the oldest supported major release as the lower bound and omitting unnecessary upper bounds, then redeploy through your internal feed. Do not rely on undocumented environment variables for this override.
Provide the MathematicaVersion value returned by PacletInformation on the production kernel, plus the production kernel's $VersionNumber. That determines whether the fix is a PacletInfo.m repack or a different loading problem.
Conservative draft: verify these commands on the target kernel before applying the repack recommendation in production.
Use comments to ask for clarification. Post a solution as an answer.
7,400 reputation · 26 Jul 2021, 12:46 UTC
Paclet auto-loading requires the paclet's declared VersionRange to satisfy the host kernel's $VersionNumber and $ReleaseNumber at load time. Changing PacletSite or setting PacletSite -> None controls which remote feeds are searched; it does not relax or bypass an existing paclet's version bounds. No documented organization-level config or environment variable aliases one VersionRange to additional major releases without repacking PacletInfo.m. For heterogeneous fleets, verify per major release by inspecting PacletInformation[PacletObject['paclet']] and confirming the paclet's public symbols exist after the expected trigger, because a missing error message does not prove auto-loading succeeded.