@rightkit/release 0.2.51 → 0.2.52

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.
@@ -16,6 +16,10 @@ export function isolatedCargoMetadataEnv(cargoHome, env = process.env) {
16
16
  return { ...metadataEnv, CARGO_HOME: cargoHome };
17
17
  }
18
18
 
19
+ export function cargoExecutable(platform = process.platform) {
20
+ return platform === "win32" ? "cargo.exe" : "cargo";
21
+ }
22
+
19
23
  export function validateRightKitCargoContract(root, publishedVersions, label = path.basename(root)) {
20
24
  const scanRoot = path.resolve(root);
21
25
  const boundary = findRepositoryRoot(scanRoot);
@@ -72,7 +76,7 @@ export function assertNoRightKitCargoOverrides(manifestPath, repoRoot, label) {
72
76
 
73
77
  function readCargoManifestDependencies(manifestPath, cargoHome, label) {
74
78
  const result = spawnSync(
75
- "cargo",
79
+ cargoExecutable(),
76
80
  ["metadata", "--no-deps", "--offline", "--format-version", "1", "--manifest-path", manifestPath],
77
81
  {
78
82
  cwd: path.dirname(manifestPath),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rightkit/release",
3
- "version": "0.2.51",
3
+ "version": "0.2.52",
4
4
  "description": "Portable Right Suite release CLI/SDK: signed installers, updater artifacts, patch/update routing, hardening, R2 publish, and RightApps registration.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,6 +8,7 @@ import test, { after } from "node:test";
8
8
  import {
9
9
  assertNoRightKitCargoOverrides,
10
10
  assertPublishedRightKitCargoDependencies,
11
+ cargoExecutable,
11
12
  validateRightKitCargoContract,
12
13
  } from "./cargo-contract.mjs";
13
14
  import { assertAsrAdapterPair } from "./asr-artifact-adoption.mjs";
@@ -449,10 +450,10 @@ test("RightKit exposes one current version manifest", () => {
449
450
  "@rightkit/legal": "0.3.0",
450
451
  "@rightkit/legal-ui": "0.1.0",
451
452
  "@rightkit/license": "0.1.6",
452
- "@rightkit/release": "0.2.51",
453
+ "@rightkit/release": "0.2.52",
453
454
  });
454
455
  assert.deepEqual(versions.legacyNpm, {
455
- "@rightkit/release": ["0.2.22", "0.2.29", "0.2.30", "0.2.31", "0.2.41", "0.2.42", "0.2.43", "0.2.44", "0.2.45", "0.2.46", "0.2.49", "0.2.50"],
456
+ "@rightkit/release": ["0.2.22", "0.2.29", "0.2.30", "0.2.31", "0.2.41", "0.2.42", "0.2.43", "0.2.44", "0.2.45", "0.2.46", "0.2.49", "0.2.50", "0.2.51"],
456
457
  });
457
458
  assert.ok(
458
459
  new Set([versions.npm["@rightkit/release"], ...versions.legacyNpm["@rightkit/release"]]).has("0.2.42"),
@@ -473,6 +474,11 @@ test("RightKit exposes one current version manifest", () => {
473
474
  getCurrentCargoVersionContract();
474
475
  });
475
476
 
477
+ test("Cargo metadata uses the native Windows executable", () => {
478
+ assert.equal(cargoExecutable("win32"), "cargo.exe");
479
+ assert.equal(cargoExecutable("darwin"), "cargo");
480
+ });
481
+
476
482
  test("license v2 public vector is identical at every portable consumer boundary", () => {
477
483
  const canonical = readFileSync(
478
484
  path.join(workspace, "tools/rightkit/crates/rightkit-license/test-vectors/license-v2.json"),
@@ -15,10 +15,10 @@
15
15
  "@rightkit/legal": "0.3.0",
16
16
  "@rightkit/legal-ui": "0.1.0",
17
17
  "@rightkit/license": "0.1.6",
18
- "@rightkit/release": "0.2.51"
18
+ "@rightkit/release": "0.2.52"
19
19
  },
20
20
  "legacyNpm": {
21
- "@rightkit/release": ["0.2.22", "0.2.29", "0.2.30", "0.2.31", "0.2.41", "0.2.42", "0.2.43", "0.2.44", "0.2.45", "0.2.46", "0.2.49", "0.2.50"]
21
+ "@rightkit/release": ["0.2.22", "0.2.29", "0.2.30", "0.2.31", "0.2.41", "0.2.42", "0.2.43", "0.2.44", "0.2.45", "0.2.46", "0.2.49", "0.2.50", "0.2.51"]
22
22
  },
23
23
  "cargo": {
24
24
  "rightkit-license": "0.1.2",