Commit 76086d8
Workaround: Skip CLI tests due to sprite auth bug
The sprite CLI has a bug where `EnsureAuthenticated()` in auth_flow.go
requires an active user (from `sprite login`) even when SPRITE_TOKEN
env var is set. This causes `sprite create` to fail with "no
authentication found" even after `sprite auth setup --token`.
The bug is that `EnsureAuthenticated()` gates `GetOrgAndClient()` behind
`activeUser != nil`, so the SPRITE_TOKEN check in `GetToken()` (added
in PR #151) is never reached.
This workaround sets SKIP_CLI_TESTS=true which skips test sprite
creation but still generates docs from --help output.
Related:
- CLI auth fix (incomplete): superfly/sprite-env#151
- The fix to GetToken() works, but EnsureAuthenticated() needs updating
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 85d3ad8 commit 76086d8
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
0 commit comments