From b51313a0421cc3c700507dfb96d93aa2a1b5bd16 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Thu, 26 Mar 2026 12:18:08 +0000 Subject: [PATCH] ci: pin bun to 1.2.15 to match dogfood version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The CI workflow used bun-version: latest, which recently jumped to 1.3.11. Bun 1.3.10 changed the bundler preamble (WeakMap caching, __accessProp, __exportSetter), so dist/index.js built locally with 1.2.x no longer matches what CI produces — instant check_unstaged failure for anyone not running bleeding-edge bun. ci: rebuild dist/index.js with bun 1.2.15 --- .github/workflows/ci.yaml | 2 +- dist/index.js | 32 +++++++------------------------- 2 files changed, 8 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 80fd07e..5bf4b11 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,7 +19,7 @@ jobs: - name: Setup Bun uses: oven-sh/setup-bun@v1 with: - bun-version: latest + bun-version: "1.2.15" - name: Install dependencies run: bun install diff --git a/dist/index.js b/dist/index.js index fcc3a31..9d0d742 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3,43 +3,25 @@ var __getProtoOf = Object.getPrototypeOf; var __defProp = Object.defineProperty; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; -function __accessProp(key) { - return this[key]; -} -var __toESMCache_node; -var __toESMCache_esm; var __toESM = (mod, isNodeMode, target) => { - var canCache = mod != null && typeof mod === "object"; - if (canCache) { - var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap; - var cached = cache.get(mod); - if (cached) - return cached; - } target = mod != null ? __create(__getProtoOf(mod)) : {}; const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target; for (let key of __getOwnPropNames(mod)) if (!__hasOwnProp.call(to, key)) __defProp(to, key, { - get: __accessProp.bind(mod, key), + get: () => mod[key], enumerable: true }); - if (canCache) - cache.set(mod, to); return to; }; var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports); -var __returnValue = (v) => v; -function __exportSetter(name, newValue) { - this[name] = __returnValue.bind(null, newValue); -} var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true, configurable: true, - set: __exportSetter.bind(all, name) + set: (newValue) => all[name] = () => newValue }); }; @@ -3465,7 +3447,7 @@ var require_constants2 = __commonJS((exports2, module2) => { } })(); var channel; - var structuredClone = globalThis.structuredClone ?? function structuredClone2(value, options = undefined) { + var structuredClone = globalThis.structuredClone ?? function structuredClone(value, options = undefined) { if (arguments.length === 0) { throw new TypeError("missing argument"); } @@ -16390,7 +16372,7 @@ var require_undici = __commonJS((exports2, module2) => { module2.exports.getGlobalDispatcher = getGlobalDispatcher; if (util.nodeMajor > 16 || util.nodeMajor === 16 && util.nodeMinor >= 8) { let fetchImpl = null; - module2.exports.fetch = async function fetch2(resource) { + module2.exports.fetch = async function fetch(resource) { if (!fetchImpl) { fetchImpl = require_fetch().fetch; } @@ -22726,11 +22708,11 @@ var require_github = __commonJS((exports2) => { }); // src/index.ts -var core2 = __toESM(require_core(), 1); -var github = __toESM(require_github(), 1); +var core2 = __toESM(require_core()); +var github = __toESM(require_github()); // src/action.ts -var core = __toESM(require_core(), 1); +var core = __toESM(require_core()); // node_modules/zod/v3/external.js var exports_external = {};