Skip to content

Commit 2199bd1

Browse files
Snidercodex
andcommitted
refactor(go): restructure to /go/ subtree + audit COMPLIANT (Mantis #1227)
Bring go-cache to v0.9.0 audit-COMPLIANT verdict (every counter at 0). Layout migration: - Moved flat module into go/ subtree - Added go.work at repo root with use ./go + ./external/{go,go-io} - Added 2 git submodules (external/go, external/go-io) on dev branch - go/go.mod declares `module dappco.re/go/cache` Contract migration: - Banned-import cleanup - Result-discard propagation - err-shape-funcs migrated to core.Result - AX-7 triplet + Example coverage backfilled - 0 gaming patterns Verification: build / vet / test / audit.sh all clean. Closes tasks.lthn.sh/view.php?id=1227 Co-authored-by: Codex <noreply@openai.com>
1 parent 32af9f2 commit 2199bd1

16 files changed

Lines changed: 3299 additions & 6726 deletions

File tree

.gitmodules

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[submodule "external/go"]
2+
path = external/go
3+
url = https://github.com/dappcore/go.git
4+
branch = dev
5+
[submodule "external/go-io"]
6+
path = external/go-io
7+
url = https://github.com/dappcore/go-io.git
8+
branch = dev

AGENTS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# go-cache Agent Notes
2+
3+
This repository follows the core/go v0.9 layout:
4+
5+
- Go module source lives under `go/`.
6+
- Root `go.work` lists `./go` and local dependency checkouts under `external/`.
7+
- Do not edit `.core/` runtime configuration.
8+
- Do not edit source inside `external/`; only submodule pointers should change.
9+
10+
Use `core.Result` for fallible package APIs and core/go wrappers for filesystem,
11+
JSON, process, string, and environment operations.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# go-cache
2+
3+
`dappco.re/go/cache` provides a storage-agnostic cache backed by
4+
`dappco.re/go/io` media. It stores JSON entries, binary sidecars, scoped caches,
5+
and request/response metadata for HTTP cache workflows.
6+
7+
## Development
8+
9+
The module lives in `go/`.
10+
11+
```sh
12+
cd go
13+
GOWORK=off GOPROXY=direct GOSUMDB=off go test -count=1 -short ./...
14+
```
15+
16+
The repository is v0.9.0 audit-driven; the release contract is:
17+
18+
```sh
19+
bash /Users/snider/Code/core/go/tests/cli/v090-upgrade/audit.sh .
20+
```

0 commit comments

Comments
 (0)