code-foundry 0.31.16 → 0.31.18
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.
|
@@ -344,7 +344,7 @@ jobs:
|
|
|
344
344
|
set -euo pipefail
|
|
345
345
|
scope="$RUST_SCOPE"
|
|
346
346
|
scope_id="$(node -e 'process.stdout.write(require("node:crypto").createHash("sha256").update(process.argv[1]).digest("hex").slice(0, 12))' "$scope")"
|
|
347
|
-
config_file="$
|
|
347
|
+
config_file="$GITHUB_WORKSPACE/.github/codeql-rust-$scope_id.yml"
|
|
348
348
|
cat > "$config_file" <<'EOF'
|
|
349
349
|
name: code-foundry-rust
|
|
350
350
|
EOF
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.31.18](https://github.com/0xPlayerOne/code-foundry/compare/v0.31.17...v0.31.18) (2026-07-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **codeql:** keep generated config in workspace ([9ca8f3b](https://github.com/0xPlayerOne/code-foundry/commit/9ca8f3b958e40209727f305bd0c0856f4820e1b6))
|
|
9
|
+
|
|
10
|
+
## [0.31.17](https://github.com/0xPlayerOne/code-foundry/compare/v0.31.16...v0.31.17) (2026-07-30)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **sync:** preserve repository release policy ([8a8291b](https://github.com/0xPlayerOne/code-foundry/commit/8a8291b940bcc777e4aa9a426e56235b031fd002))
|
|
16
|
+
|
|
3
17
|
## [0.31.16](https://github.com/0xPlayerOne/code-foundry/compare/v0.31.15...v0.31.16) (2026-07-30)
|
|
4
18
|
|
|
5
19
|
|
package/package.json
CHANGED
package/src/commands/sync.mjs
CHANGED
|
@@ -225,6 +225,9 @@ function renderWorkflow(content, config, repository, ref, rustCodeql) {
|
|
|
225
225
|
const workflow = content.match(/\.github\/workflows\/([^/]+)\.yml/)?.[1]
|
|
226
226
|
const runner = workflow ? runners[workflow] : undefined
|
|
227
227
|
if (runner) rendered = rendered.replace(/^(\s+runner:)\s+.*$/m, `$1 ${runner}`)
|
|
228
|
+
if (workflow === 'test' && config.unit_runner) {
|
|
229
|
+
rendered = rendered.replace(/^(\s+unit-runner:)\s+.*$/m, `$1 ${config.unit_runner}`)
|
|
230
|
+
}
|
|
228
231
|
if (workflow === 'codeql') {
|
|
229
232
|
rendered = rendered.replace(/^(\s+rust-shards:)\s+.*$/m, `$1 '${rustCodeql.shards}'`)
|
|
230
233
|
rendered = rendered.replace(/^(\s+rust-threads:)\s+.*$/m, `$1 '${rustCodeql.threads}'`)
|
|
@@ -36,6 +36,9 @@ export function buildReleaseConfig(root, existing = {}) {
|
|
|
36
36
|
const packages = detectReleasePackages(root)
|
|
37
37
|
const result = { ...existing }
|
|
38
38
|
if (!packages.length) return result
|
|
39
|
+
// An explicit packages map is repository policy. Do not silently turn
|
|
40
|
+
// version-synchronized subprojects or vendored manifests into releases.
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(existing, 'packages')) return result
|
|
39
42
|
if (packages.length === 1 && packages[0].directory === '.') {
|
|
40
43
|
result['release-type'] ??= packages[0].releaseType
|
|
41
44
|
/** @type {any[]} */
|