Skip to content

Commit 062e286

Browse files
pRizzclaude
andcommitted
docs: add OPENCODE_COMMIT merge conflict resolution rule
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c72abef commit 062e286

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The `scripts/set-all-versions.sh` script handles version updates automatically.
8383
- Rebase pull from `main` first (for example: `git pull --rebase origin main`).
8484
- Then push to `main`.
8585
- After committing and pushing changes in the `packages/opencode/` submodule, run `just update-opencode-commit` in the superproject to update the Dockerfile's `OPENCODE_COMMIT` pin. Commit and push the resulting Dockerfile change to `main`.
86+
- **Resolving `OPENCODE_COMMIT` merge conflicts:** If a rebase or merge produces a conflict in the Dockerfile's `OPENCODE_COMMIT` line, do not manually pick a SHA. Instead, accept either side to clear the conflict markers, then run `just update-opencode-commit` to set the correct value from the current submodule state.
8687

8788
## Working with Git Worktrees and Submodules
8889

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ The `scripts/set-all-versions.sh` script handles version updates automatically.
8383
- Rebase pull from `main` first (for example: `git pull --rebase origin main`).
8484
- Then push to `main`.
8585
- After committing and pushing changes in the `packages/opencode/` submodule, run `just update-opencode-commit` in the superproject to update the Dockerfile's `OPENCODE_COMMIT` pin. Commit and push the resulting Dockerfile change to `main`.
86+
- **Resolving `OPENCODE_COMMIT` merge conflicts:** If a rebase or merge produces a conflict in the Dockerfile's `OPENCODE_COMMIT` line, do not manually pick a SHA. Instead, accept either side to clear the conflict markers, then run `just update-opencode-commit` to set the correct value from the current submodule state.
8687

8788
## Working with Git Worktrees and Submodules
8889

0 commit comments

Comments
 (0)