Bug
mint@4.2.469 (via @mintlify/cli@4.0.1072) added keytar as a hard dependency. keytar is a native module that requires libsecret-1.so.0 on Linux, which isn't available on standard CI runners (e.g. GitHub Actions ubuntu-24.04).
This breaks headless usage of commands like npx mint openapi-check that don't need keychain access.
Repro
# GitHub Actions on ubuntu-24.04
- run: npx mint openapi-check my-spec.yaml
Error: libsecret-1.so.0: cannot open shared object file: No such file or directory
at Object..node (node:internal/modules/cjs/loader:1864:18)
...
at Object.<anonymous> (/home/runner/.npm/_npx/.../keytar/lib/keytar.js:1:14)
Expected
keytar should be an optional dependency or lazily loaded, since it's only needed for interactive login flows — not for openapi-check or other headless commands.
Workaround
Pin to the previous version: npx mint@4.2.468 openapi-check ...
Versions
mint@4.2.469 / @mintlify/cli@4.0.1072 — broken
mint@4.2.468 / @mintlify/cli@4.0.1071 — works
Bug
mint@4.2.469(via@mintlify/cli@4.0.1072) addedkeytaras a hard dependency.keytaris a native module that requireslibsecret-1.so.0on Linux, which isn't available on standard CI runners (e.g. GitHub Actionsubuntu-24.04).This breaks headless usage of commands like
npx mint openapi-checkthat don't need keychain access.Repro
Expected
keytarshould be an optional dependency or lazily loaded, since it's only needed for interactive login flows — not foropenapi-checkor other headless commands.Workaround
Pin to the previous version:
npx mint@4.2.468 openapi-check ...Versions
mint@4.2.469/@mintlify/cli@4.0.1072— brokenmint@4.2.468/@mintlify/cli@4.0.1071— works