You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee06667
Browse filesBrowse the repository at this point in the historyBrowse files
fix: rename the active-environment accessors so stale reads fail to build (#81) (#82)
Unexporting ActiveEnv behind an accessor of the same name made the break
loud for writers and silent for readers: a method value is comparable to
nil and assignable to interface{}, so `if svc.ActiveEnv == nil` compiles
as dead code and `require.Nil(t, svc.ActiveEnv)` passes vacuously. Only
the assignment form failed to build, and go vet catches just one of the
two silent shapes.
ActiveEnvironment/SetActiveEnvironment leave no pre-#79 spelling that
compiles, so the compiler reports what review missed.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments