TODO: mark the yet core/paths migration done
yet's internal/store now resolves Home/CacheHome/BinDir via
core/paths (Application{Name: "yet", Kind: core.CLI}) instead of its
own $YETANO_HOME/os.UserConfigDir() logic, split across three
independently overridable categories. See yetano.dev/yetano/yet's
own commit for the actual migration and its new --system scope flag.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
689469eb32
commit
e6b5324ad3
1 file changed
+15
-11
@@ -6,17 +6,21 @@ speculatively.
|
||||
|
||||
## Migration
|
||||
|
||||
- **Migrate `yet` onto `core/paths`/`core/config`.** `yet`'s
|
||||
`internal/store.Home()` (`$YETANO_HOME`, defaulting to
|
||||
`os.UserConfigDir()/yetano`) and `internal/config` (fixed
|
||||
`/etc/yetano/yetano.yaml` -> `~/.config/yetano/yetano.yaml` ->
|
||||
`./yetano.yaml` -> `--config` cascade) predate this library and
|
||||
overlap with what it now provides. Migrating is a deliberately
|
||||
separate follow-up, not part of this change -- `yet`'s existing
|
||||
behavior needs to be evaluated field-by-field (e.g. `$YETANO_HOME`'s
|
||||
default of `os.UserConfigDir()/yetano` is *not* the same location
|
||||
`core/paths` would resolve for an app named "yetano"/"yet"; that
|
||||
divergence needs a conscious decision, not a silent behavior change).
|
||||
- [x] **Migrate `yet` onto `core/paths`/`core/config`.** `internal/config`
|
||||
already used `core/config`/`core/paths` (shared `Application{Name:
|
||||
"yetano"}`). `internal/store`'s own `$YETANO_HOME` (formerly
|
||||
`os.UserConfigDir()/yetano`, one monolithic root) has now been split
|
||||
across three independently overridable `core/paths` categories for
|
||||
`Application{Name: "yet", Kind: core.CLI}`: `store.Home()` (`DataDir`;
|
||||
store/packages/profiles/sources/credentials/trust-policy/deployments/
|
||||
share-lib-etc), `store.CacheHome()` (`CacheDir`; the blob cache), and
|
||||
`store.BinDir()` (`BinDir`; managed command entrypoints, shared across
|
||||
every Yetano application). This is a deliberate default-path and
|
||||
env-var-shape change (`$YETANO_HOME` no longer exists; see
|
||||
`YET_DATA_HOME`/`YETANO_DATA_HOME`, `YET_CACHE_HOME`/
|
||||
`YETANO_CACHE_HOME`, `YET_BIN_HOME`/`YETANO_BIN_HOME` instead) --
|
||||
existing installations are not migrated (see `yet`'s
|
||||
`docs/install-store-and-profiles.md`).
|
||||
- Once `yet` migrates, evaluate `yasta`, `yamocir`, `yaiam`, and
|
||||
`yalsh`-adjacent projects the same way (per the original task
|
||||
description) -- each on its own merits, not as a blanket sweep.
|
||||
|
||||
Reference in new issue
Block a user