Skip to content

fix: pre-flight uses terminus env:info, not connection:info, for conn… - #102

Merged
square360-george merged 1 commit into
mainfrom
fix/v3.2.5-correct-terminus-field
May 22, 2026
Merged

fix: pre-flight uses terminus env:info, not connection:info, for conn…#102
square360-george merged 1 commit into
mainfrom
fix/v3.2.5-correct-terminus-field

Conversation

@square360-george

Copy link
Copy Markdown
Member

…ection_mode field; self-pin internal refs to v3.2.5

connection_mode lives on terminus env:info, NOT on terminus connection:info (which returns git/sftp connection URLs and commands only). v3.2.4 shipped with the wrong subcommand:

MODE=$(terminus connection:info ... --field=connection_mode)

Terminus exits 1 with "The requested field, 'connection_mode', is not defined." The fix is a one-word change:

MODE=$(terminus env:info ... --field=connection_mode)

Why this slipped past v3.2.4's Yale Health pre-merge validation: the original code had 2>/dev/null || echo "" swallowing terminus errors, so MODE was always empty, the != "git" check always tripped, and connection:set git ran defensively every single time — masking the broken field query. Copilot's review on PR #101 correctly flagged the stderr suppression and we removed it. That surfaced this real bug on the first v3.2.5-released consumer deploy (Yale Health, immediately after the plugin v2.0.18 release).

Out-of-scope but confirmed sound: terminus connection:info ... --field=git_url in the verify-after-push step is correct — git_url IS on connection:info. Only the pre-flight call was wrong.

Self-pin internal @v3.2.4 → @v3.2.5 across all four reusable deploy workflows.

…ection_mode field; self-pin internal refs to v3.2.5

`connection_mode` lives on `terminus env:info`, NOT on
`terminus connection:info` (which returns git/sftp connection URLs
and commands only). v3.2.4 shipped with the wrong subcommand:

  MODE=$(terminus connection:info ... --field=connection_mode)

Terminus exits 1 with "The requested field, 'connection_mode', is
not defined." The fix is a one-word change:

  MODE=$(terminus env:info ... --field=connection_mode)

Why this slipped past v3.2.4's Yale Health pre-merge validation:
the original code had `2>/dev/null || echo ""` swallowing terminus
errors, so MODE was always empty, the `!= "git"` check always tripped,
and `connection:set git` ran defensively every single time — masking
the broken field query. Copilot's review on PR #101 correctly flagged
the stderr suppression and we removed it. That surfaced this real
bug on the first v3.2.5-released consumer deploy (Yale Health,
immediately after the plugin v2.0.18 release).

Out-of-scope but confirmed sound: `terminus connection:info ... --field=git_url`
in the verify-after-push step is correct — `git_url` IS on `connection:info`.
Only the pre-flight call was wrong.

Self-pin internal @v3.2.4 → @v3.2.5 across all four reusable deploy workflows.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 22, 2026 20:20
@square360-george
square360-george merged commit aa428b5 into main May 22, 2026
@square360-george
square360-george removed the request for review from Copilot May 22, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant