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
|
## Migration
|
||||||
|
|
||||||
- **Migrate `yet` onto `core/paths`/`core/config`.** `yet`'s
|
- [x] **Migrate `yet` onto `core/paths`/`core/config`.** `internal/config`
|
||||||
`internal/store.Home()` (`$YETANO_HOME`, defaulting to
|
already used `core/config`/`core/paths` (shared `Application{Name:
|
||||||
`os.UserConfigDir()/yetano`) and `internal/config` (fixed
|
"yetano"}`). `internal/store`'s own `$YETANO_HOME` (formerly
|
||||||
`/etc/yetano/yetano.yaml` -> `~/.config/yetano/yetano.yaml` ->
|
`os.UserConfigDir()/yetano`, one monolithic root) has now been split
|
||||||
`./yetano.yaml` -> `--config` cascade) predate this library and
|
across three independently overridable `core/paths` categories for
|
||||||
overlap with what it now provides. Migrating is a deliberately
|
`Application{Name: "yet", Kind: core.CLI}`: `store.Home()` (`DataDir`;
|
||||||
separate follow-up, not part of this change -- `yet`'s existing
|
store/packages/profiles/sources/credentials/trust-policy/deployments/
|
||||||
behavior needs to be evaluated field-by-field (e.g. `$YETANO_HOME`'s
|
share-lib-etc), `store.CacheHome()` (`CacheDir`; the blob cache), and
|
||||||
default of `os.UserConfigDir()/yetano` is *not* the same location
|
`store.BinDir()` (`BinDir`; managed command entrypoints, shared across
|
||||||
`core/paths` would resolve for an app named "yetano"/"yet"; that
|
every Yetano application). This is a deliberate default-path and
|
||||||
divergence needs a conscious decision, not a silent behavior change).
|
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
|
- Once `yet` migrates, evaluate `yasta`, `yamocir`, `yaiam`, and
|
||||||
`yalsh`-adjacent projects the same way (per the original task
|
`yalsh`-adjacent projects the same way (per the original task
|
||||||
description) -- each on its own merits, not as a blanket sweep.
|
description) -- each on its own merits, not as a blanket sweep.
|
||||||
|
|||||||
Reference in new issue
Block a user