9d5aa7c2b2e0154de7a4a137754acb769e968aa0
- Author
- TheEdgeOfRage <git@theedgeofrage.com>
- Committer
- TheEdgeOfRage <git@theedgeofrage.com>
- Date
Message
Diff
This diff is truncated to protect this page.
1diff --git a/dot_config/opencode/AGENTS.md b/dot_config/opencode/AGENTS.md
2index 624d418a66f888e0a36193c7464162fdbff74509..6cd9670b20c9ac1db75ac194b08d3658f06d15c6 100644
3--- a/dot_config/opencode/AGENTS.md
4+++ b/dot_config/opencode/AGENTS.md
5@@ -80,13 +80,6 @@ Services that I explicitly ask you to access are fine, e.g. GitHub for PRs
6
7 - Always use `make lint` if available, if not, prefer `go vet` over `go build`
8
9-### Cross-repo Go module changes
10-
11-When work spans a consumer repo and a shared Go module (e.g. core consuming `github.com/duneanalytics/go/v2`):
12-
13-- Make and commit the changes in the dependency repo first on a branch, then push.
14-- Use `go get github.com/duneanalytics/go/v2@<branch-name>` in the consumer repo to pin against the unmerged branch — this rewrites go.mod/go.sum cleanly and lets `make lint` / `go mod tidy` succeed.
15-
16 ## Java development
17
18diff --git a/dot_config/opencode/DUNE.md b/dot_config/opencode/DUNE.md
19new file mode 100644
20index 0000000000000000000000000000000000000000..96d4f58ba99dbe0e4f92f71eeb7b849d29fabeae
21--- /dev/null
22+++ b/dot_config/opencode/DUNE.md
23@@ -0,0 +1,13 @@
24+# Dune specific instructions
25+
26+- All the Dune project repos are located in `~/dev/dune/`
27+- The duneanalytics common go library is in `~/dev/dune/go`
28+- The protobuf and grpc definitions are in `~/dev/dune/internal-apis`
29+- When working on dune prodjects, always read the `~/dev/dune/GLOSSARY.md` file for extra context
30+
31+## Cross-repo Go module changes
32+
33+When work spans a consumer repo and a shared Go module (e.g. core consuming `github.com/duneanalytics/go/v2`):
34+
35+- Make and commit the changes in the dependency repo first on a branch, then push.
36+- Use `go get github.com/duneanalytics/go/v2@<branch-name>` in the consumer repo to pin against the unmerged branch — this rewrites go.mod/go.sum cleanly and lets `make lint` / `go mod tidy` succeed.
37diff --git a/dot_config/opencode/opencode.json.tmpl b/dot_config/opencode/opencode.json.tmpl
38index 91c38239799fecfed54f61f4dac5fb3fc40ed54f..571127884313fb96081be1b83b35439a0b6d34b6 100644
39--- a/dot_config/opencode/opencode.json.tmpl
40+++ b/dot_config/opencode/opencode.json.tmpl
41@@ -113,6 +113,7 @@
42 }
43 },
44 "instructions": [
45- "/home/pavle/.cache/dune-sietch/sietch/bundles/base/instructions/dune-base.md"
46+ "/home/pavle/.cache/dune-sietch/sietch/bundles/base/instructions/dune-base.md",
47+ "/home/pavle/.config/opencode/DUNE.md"
48 ]
49 }