Skip to content

v2.9.14 - refusing to replace a config that cannot be read or written

Choose a tag to compare

@github-actions github-actions released this 21 Nov 19:10
· 14 commits to main since this release
v2.9.14
8c89fcd

Refusing to replace a config that cannot be read or written

Fixed

  • An unreadable project or global config was replaced by a file holding only the setting just written, and the run reported success. Severity HIGH: settings lost silently. Now the run writes nothing, names the file and the error code, and exits 1. A legacy config that cannot be read is refused the same way before its new home is written. Regression test: scripts/lib/configure-reader.test.mjs.
  • On POSIX a read-only config was replaced, and a malformed config whose backup could not be made was rebuilt without one. Now a config or backup path with no write permission is refused by name before the first write, and a failed backup refuses the run and keeps the malformed bytes. A file made read-only after that check is still replaced on POSIX. Same test file.