Skip to content

candyland client: resolved-endpoint globals carry an unenforced call-ordering invariant #199

Description

@benitogf

Surfaced by the self-review on the #196 stack: candylandBaseURL / candylandDashboardURL / candylandLastIdentity (candyland_client.go) are mutable package globals that are correct only when every consumer runs after the single same-goroutine ensureCandylandUp. All current CLI paths respect this, but nothing enforces it — a future concurrent caller or a REST call before ensure would silently target the wrong endpoint.

Fix shape: a candylandEndpointState value returned by ensureCandylandUp and threaded through callers, retiring the globals.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    planeSynced with Plane

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions