release-please 15.9.0 → 15.9.2

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/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [15.9.2](https://github.com/googleapis/release-please/compare/v15.9.1...v15.9.2) (2023-03-28)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **cargo-workspace:** Find workspace modules on the target branch ([#1889](https://github.com/googleapis/release-please/issues/1889)) ([9647941](https://github.com/googleapis/release-please/commit/96479413fd5fe9d1c546d829e70bfaf99b36661a))
13
+
14
+ ## [15.9.1](https://github.com/googleapis/release-please/compare/v15.9.0...v15.9.1) (2023-03-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **cargo-workspace:** Validate Cargo.toml version field ([#1877](https://github.com/googleapis/release-please/issues/1877)) ([0303e2e](https://github.com/googleapis/release-please/commit/0303e2eb9fb082bd9657baa117961d8567eba7e6))
20
+
7
21
  ## [15.9.0](https://github.com/googleapis/release-please/compare/v15.8.2...v15.9.0) (2023-03-14)
8
22
 
9
23
 
@@ -26,6 +26,7 @@ const pull_request_body_1 = require("../util/pull-request-body");
26
26
  const branch_name_1 = require("../util/branch-name");
27
27
  const versioning_strategy_1 = require("../versioning-strategy");
28
28
  const cargo_lock_1 = require("../updaters/rust/cargo-lock");
29
+ const errors_1 = require("../errors");
29
30
  /**
30
31
  * The plugin analyzed a cargo workspace and will bump dependencies
31
32
  * of managed packages if those dependencies are being updated.
@@ -44,7 +45,7 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
44
45
  }
45
46
  const allCrates = [];
46
47
  const candidatesByPackage = {};
47
- const members = (await Promise.all(cargoManifest.workspace.members.map(member => this.github.findFilesByGlob(member)))).flat();
48
+ const members = (await Promise.all(cargoManifest.workspace.members.map(member => this.github.findFilesByGlobAndRef(member, this.targetBranch)))).flat();
48
49
  members.push(manifest_1.ROOT_PROJECT_PATH);
49
50
  for (const path of members) {
50
51
  const manifestPath = (0, workspace_1.addPath)(path, 'Cargo.toml');
@@ -64,7 +65,10 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
64
65
  }
65
66
  const version = (_d = manifest.package) === null || _d === void 0 ? void 0 : _d.version;
66
67
  if (!version) {
67
- throw new Error(`package manifest at ${manifestPath} is missing [package.version]`);
68
+ throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} is missing [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
69
+ }
70
+ else if (typeof version !== 'string') {
71
+ throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} has an invalid [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
68
72
  }
69
73
  allCrates.push({
70
74
  path,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "15.9.0",
3
+ "version": "15.9.2",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",
@@ -63,7 +63,7 @@
63
63
  "gts": "^3.1.0",
64
64
  "mocha": "^9.2.2",
65
65
  "nock": "^13.0.0",
66
- "sinon": "15.0.2",
66
+ "sinon": "15.0.3",
67
67
  "snap-shot-it": "^7.0.0"
68
68
  },
69
69
  "dependencies": {