README: the yak/yamase mirrors are gone, consumers import this module directly
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6b40ff059c
commit
b6a6298353
1 file changed
+7
-38
@@ -9,44 +9,13 @@ see `layout.go` for the API (`PageHeader`, `NavItem`, `NewRenderer`,
|
|||||||
|
|
||||||
## Source of truth
|
## Source of truth
|
||||||
|
|
||||||
This repo is the **source of truth** for the shared layout. `yak/yak-webui-template`
|
This repo is the **single source of truth** for the shared layout. Every
|
||||||
and `yamase/yamase-webui-template` are git-history mirrors of it (each repo's
|
consumer -- in `yetano`, `yak` (`yakwui`) and `yamase` (`yamase-web`) --
|
||||||
root mirrors this repo's root — not a subdirectory — created via `git merge
|
imports `teruna.dev/yetano/yetano-webui-template` directly: make layout
|
||||||
--allow-unrelated-histories`, so the histories are related and can be
|
changes here, tag a new version, then bump the consumers. The former
|
||||||
re-merged incrementally). Each mirror has exactly one intentional local
|
git-history mirrors `yak/yak-webui-template` and
|
||||||
difference: its `go.mod` `module` line, which names that repo's own import
|
`yamase/yamase-webui-template` were removed and their repositories
|
||||||
path instead of this one. Make layout changes *here first*, tag a new
|
archived on 2026-10-23 (nothing imported them).
|
||||||
version, then pull the change into each mirror — never edit the mirrored
|
|
||||||
copies directly.
|
|
||||||
|
|
||||||
### Pulling a change into a mirror
|
|
||||||
|
|
||||||
From inside `yak-webui-template` or `yamase-webui-template` (each already
|
|
||||||
has a `source` remote pointing back here):
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git fetch source main
|
|
||||||
git merge source/main
|
|
||||||
# resolve the go.mod conflict: keep the mirror's own module line, take
|
|
||||||
# everything else from source
|
|
||||||
git checkout --ours go.mod # if go.mod conflicted
|
|
||||||
git add go.mod
|
|
||||||
git commit
|
|
||||||
go test ./...
|
|
||||||
git push origin main
|
|
||||||
```
|
|
||||||
|
|
||||||
### One-time mirror setup (already done, kept here for reference/re-setup)
|
|
||||||
|
|
||||||
```sh
|
|
||||||
git init -b main
|
|
||||||
git remote add source git@teruna.dev:yetano/yetano-webui-template.git
|
|
||||||
git fetch source main
|
|
||||||
git merge --allow-unrelated-histories -m "Initial mirror of yetano-webui-template" source/main
|
|
||||||
go mod edit -module teruna.dev/<org>/<org>-webui-template
|
|
||||||
git remote add origin git@teruna.dev:<org>/<org>-webui-template.git
|
|
||||||
git push -u origin main
|
|
||||||
```
|
|
||||||
|
|
||||||
## What's shared vs. what stays per-project
|
## What's shared vs. what stays per-project
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user