go/pkg
Snider 451e84aa76
fix(core): add thread-safety to global Core instance (#95)
Protect the global `instance` variable with sync.RWMutex to prevent
data races when SetInstance/App() are called concurrently (especially
in tests).

Changes:
- Add instanceMu mutex to protect instance variable
- Update App() to use RLock for reading
- Update SetInstance() to use Lock for writing
- Add GetInstance() for non-panicking access
- Add ClearInstance() for test cleanup
- Update tests to use new thread-safe functions
- Add concurrent access test with race detector

Closes #84

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-01 16:03:44 +00:00
..
agentic fix(agentic): use context.TODO instead of nil Context (#94) 2026-02-01 15:58:26 +00:00
ai feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
build feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cache refactor: flatten CLI to root, simplify pkg/mcp for CLI-only use 2026-01-29 18:13:51 +00:00
ci feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
cli feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
container feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
dev feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
devops fix(test): use manual cleanup for TestDevOps_Boot_Good_Success 2026-02-01 11:55:10 +00:00
docs feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
doctor refactor: migrate all pkg/* to cli abstraction 2026-01-31 23:54:01 +00:00
errors feat(pkg): add standalone log and errors packages 2026-01-30 22:02:40 +00:00
framework fix(core): add thread-safety to global Core instance (#95) 2026-02-01 16:03:44 +00:00
git feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
gitcmd feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
go feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
i18n feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
log feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
mcp feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
monitor feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
php feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
pkgcmd feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
process feat(process): add Logger interface for exec wrapper (#93) 2026-02-01 15:55:26 +00:00
qa feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
release feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
repos feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
sdk feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
security feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
setup feat(ci): add core setup ci and dogfood CLI in workflows 2026-02-01 11:36:59 +00:00
test feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
updater style(update): fix trailing newline in cmd.go 2026-02-01 12:46:17 +00:00
vm feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00
workspace feat: git command, build improvements, and go fmt git-aware (#74) 2026-02-01 10:48:44 +00:00