@biffo/cli 0.312.4 → 0.312.5

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.
@@ -166,4 +166,22 @@ fi
166
166
  # without the file passed its pre-push having checked nothing, which is the
167
167
  # same defect one level up from the one #855 recorded. A gate that cannot run
168
168
  # is not a gate that passed.
169
- exec sh scripts/biffo.sh verify
169
+ #
170
+ # Not a bare `exec` (biffo-template#1985): git's own generic
171
+ # "error: failed to push some refs" line is printed by git itself, after this
172
+ # hook exits, and is the literal last thing in a truncated-tail read of a long
173
+ # agent transcript. Nothing distinguished it from a real auth/network
174
+ # rejection -- three same-day dispatches on tabsii-platform#1403 diagnosed and
175
+ # "fixed" a token before noticing the real cause was a local gate. verify.sh's
176
+ # own failure text (above) already names the cause; this adds one more line,
177
+ # deliberately placed as close as this hook can get to git's trailing output,
178
+ # so a reader who only sees the last few lines still sees it.
179
+ sh scripts/biffo.sh verify
180
+ verify_status=$?
181
+ if [ "$verify_status" -ne 0 ]; then
182
+ printf '\n\033[31m>>> pre-push: BLOCKED BY THE LOCAL GATE ABOVE, not by git or GitHub.\033[0m\n' >&2
183
+ printf ' See "verify failed:" above for which check(s) and why. Any\n' >&2
184
+ printf ' "failed to push some refs" line below this is git relaying that\n' >&2
185
+ printf ' same exit code -- it is not a separate rejection.\n' >&2
186
+ fi
187
+ exit "$verify_status"
@@ -166,4 +166,22 @@ fi
166
166
  # without the file passed its pre-push having checked nothing, which is the
167
167
  # same defect one level up from the one #855 recorded. A gate that cannot run
168
168
  # is not a gate that passed.
169
- exec sh scripts/biffo.sh verify
169
+ #
170
+ # Not a bare `exec` (biffo-template#1985): git's own generic
171
+ # "error: failed to push some refs" line is printed by git itself, after this
172
+ # hook exits, and is the literal last thing in a truncated-tail read of a long
173
+ # agent transcript. Nothing distinguished it from a real auth/network
174
+ # rejection -- three same-day dispatches on tabsii-platform#1403 diagnosed and
175
+ # "fixed" a token before noticing the real cause was a local gate. verify.sh's
176
+ # own failure text (above) already names the cause; this adds one more line,
177
+ # deliberately placed as close as this hook can get to git's trailing output,
178
+ # so a reader who only sees the last few lines still sees it.
179
+ sh scripts/biffo.sh verify
180
+ verify_status=$?
181
+ if [ "$verify_status" -ne 0 ]; then
182
+ printf '\n\033[31m>>> pre-push: BLOCKED BY THE LOCAL GATE ABOVE, not by git or GitHub.\033[0m\n' >&2
183
+ printf ' See "verify failed:" above for which check(s) and why. Any\n' >&2
184
+ printf ' "failed to push some refs" line below this is git relaying that\n' >&2
185
+ printf ' same exit code -- it is not a separate rejection.\n' >&2
186
+ fi
187
+ exit "$verify_status"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biffo/cli",
3
- "version": "0.312.4",
3
+ "version": "0.312.5",
4
4
  "description": "Biffo project scaffolding CLI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/scripts/verify.sh CHANGED
@@ -1273,6 +1273,10 @@ elif [ -z "$PG_TEST_DSN" ]; then
1273
1273
  printf ' the pg-test lane above did not run. CI treats it as a required check, so a\n'
1274
1274
  printf ' push here would report green without having checked the thing most likely\n'
1275
1275
  printf ' to need it.\n\n'
1276
+ printf ' This is NOT a credentials or network problem. It is a local gate refusing\n'
1277
+ printf ' to push until the Postgres test lane runs. If git prints its own generic\n'
1278
+ printf ' "failed to push some refs" line below this, that is git relaying THIS exit\n'
1279
+ printf ' code -- not a rejection by GitHub or a sign of a bad token.\n\n'
1276
1280
  printf ' Get a DSN and re-run:\n'
1277
1281
  printf ' eval "$(sh scripts/pg-test-db.sh --export)" # if this repo ships one\n'
1278
1282
  printf ' export BIFFO_TEST_PG_DSN=postgresql+asyncpg://user:pass@host:port/db\n\n'