Commit 6b94d65
fix: clear error when Bytebase server predates 3.17.0 (#192)
* fix: clear error when Bytebase server predates 3.17.0
Bytebase 3.16.x servers emit a bare UUID in the actuator `workspace`
field; since 3.17.0 the provider no longer prepends `workspaces/` to
that value, so the bare UUID was forwarded as the IAM policy resource
and the server rejected it with a cryptic
`invalid workspace resource "<uuid>"` error.
Fail fast at client init with an explicit version-mismatch message
instead, matching how other Terraform providers handle backend version
skew.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: satisfy revive error-strings rule
Drop the trailing period and restructure the multi-sentence error
into a single sentence so the string no longer ends with punctuation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 2fb691a commit 6b94d65
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
0 commit comments