@rightkit/release 0.6.47 → 0.6.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/tool-build.mjs CHANGED
@@ -130,7 +130,7 @@ export async function runUnitTool({
130
130
  stage = "enrol";
131
131
  let enrolled;
132
132
  try {
133
- const root_ = dataRoot ?? resolveManagedRoots({ env }).dataRoot;
133
+ const root_ = dataRoot ?? resolveManagedRoots({ env }).gateRoot;
134
134
  enrolled = plan.enrols === "credential-provider"
135
135
  ? enrollProvider({ dataRoot: root_, platform: plan.runnerPlatform, binary: built, version: unit.version })
136
136
  : enroll({ dataRoot: root_, platform: plan.runnerPlatform, runner: built, version: unit.version });
package/unit-gate.mjs CHANGED
@@ -140,7 +140,7 @@ export async function loadInGatePipeline({ coordinator = trustedCoordinator(), e
140
140
  }
141
141
 
142
142
  /** The managed snapshots root of this host (`<data root>/snapshots`), or null when the host's roots cannot be resolved. */
143
- const managedSnapshotsRoot = ({ env, platform }) => { try { return (platform === "win32" ? path.win32 : path.posix).join(resolveManagedRoots({ env, platform }).dataRoot, "snapshots"); } catch { return null; } };
143
+ const managedSnapshotsRoot = ({ env, platform }) => { try { return (platform === "win32" ? path.win32 : path.posix).join(resolveManagedRoots({ env, platform }).gateRoot, "snapshots"); } catch { return null; } };
144
144
 
145
145
  const requireBrokerHost = (executor) => { if (executor?.kind !== "broker") throw new Error("unit release runs only on a broker-managed host (the hosted qualification is dispatched by the RustRight rightkit-dispatch adapter); a direct host has no gate-owned release route, so no upload was started"); };
146
146