@steve31415/baselib 2.4.1 → 2.4.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/dist/deploy/deploy.js +4 -2
- package/dist/deploy/plan.js +2 -1
- package/package.json +1 -1
package/dist/deploy/deploy.js
CHANGED
|
@@ -397,9 +397,11 @@ export async function runDeploy(options) {
|
|
|
397
397
|
})),
|
|
398
398
|
timingsMs: timer.timings,
|
|
399
399
|
});
|
|
400
|
-
if (hold
|
|
400
|
+
if (hold) {
|
|
401
|
+
// A successful deploy clears any hold: either a different SHA shipped
|
|
402
|
+
// (the fix landed) or the operator deliberately overrode the hold.
|
|
401
403
|
await clearHold(runner, holdUri);
|
|
402
|
-
log('cleared rollback hold
|
|
404
|
+
log('cleared rollback hold');
|
|
403
405
|
}
|
|
404
406
|
log(`deployed ${sha.slice(0, 12)} (${record})`);
|
|
405
407
|
log(`timings:\n${timer.table()}`);
|
package/dist/deploy/plan.js
CHANGED
|
@@ -141,7 +141,8 @@ export function releaseEntriesFrom(rows, prefix) {
|
|
|
141
141
|
return [];
|
|
142
142
|
return rows.flatMap((row) => {
|
|
143
143
|
const r = row;
|
|
144
|
-
|
|
144
|
+
// `gcloud storage ls --json` appends `#<generation>` to object URLs.
|
|
145
|
+
const url = (r.url ?? '').replace(/#\d+$/, '');
|
|
145
146
|
const name = url.slice(url.lastIndexOf('/') + 1);
|
|
146
147
|
const sha = name.endsWith('.json') ? name.slice(0, -5) : '';
|
|
147
148
|
if (!SHA40.test(sha) || !url.includes(prefix))
|
package/package.json
CHANGED