From 6e786bbd858ff2d061117352ab8c5196ddda22fb Mon Sep 17 00:00:00 2001 From: Snider Date: Sat, 14 Mar 2026 10:24:13 +0000 Subject: [PATCH] refactor: update import path from go-config to core/config Co-Authored-By: Virgil --- CLAUDE.md | 2 +- devenv/config.go | 2 +- docs/architecture.md | 2 +- docs/development.md | 2 +- docs/index.md | 2 +- go.mod | 2 +- go.sum | 2 -- 7 files changed, 6 insertions(+), 8 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index bce9c76..c8d8812 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -14,7 +14,7 @@ go test ./devenv/ # single package No build step required -- this is a library. The `cmd/vm/` package registers CLI commands via `init()` into the parent `core/cli` binary. -**Go workspace**: This module is part of a Go workspace (`~/Code/go.work`). Sibling modules (`go-io`, `go-config`, `go-i18n`, `cli`) are resolved via the workspace file during local development. +**Go workspace**: This module is part of a Go workspace (`~/Code/go.work`). Sibling modules (`go-io`, `config`, `go-i18n`, `cli`) are resolved via the workspace file during local development. ## Architecture diff --git a/devenv/config.go b/devenv/config.go index 78419b2..9f33dd6 100644 --- a/devenv/config.go +++ b/devenv/config.go @@ -4,7 +4,7 @@ import ( "os" "path/filepath" - "forge.lthn.ai/core/go-config" + "forge.lthn.ai/core/config" "forge.lthn.ai/core/go-io" ) diff --git a/docs/architecture.md b/docs/architecture.md index f87d516..06af0eb 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -249,7 +249,7 @@ The `ImageManager` in `devenv` maintains a `manifest.json` in `~/.core/images/` ## Configuration -The `devenv` package reads `~/.core/config.yaml` via the `go-config` library: +The `devenv` package reads `~/.core/config.yaml` via the `config` library: ```yaml version: 1 diff --git a/docs/development.md b/docs/development.md index a85ed64..65872e8 100644 --- a/docs/development.md +++ b/docs/development.md @@ -8,7 +8,7 @@ description: How to build, test, and contribute to go-container. ## Prerequisites - **Go 1.26+** -- The module uses Go 1.26 features. -- **Go workspace** -- This module is part of a Go workspace at `~/Code/go.work`. Local development of sibling modules (go-io, go-config, go-i18n, cli) requires the workspace file. +- **Go workspace** -- This module is part of a Go workspace at `~/Code/go.work`. Local development of sibling modules (go-io, config, go-i18n, cli) requires the workspace file. Optional (for actually running VMs): diff --git a/docs/index.md b/docs/index.md index 1afee3b..eda6006 100644 --- a/docs/index.md +++ b/docs/index.md @@ -106,7 +106,7 @@ content, err := container.ApplyTemplate("core-dev", map[string]string{ | Module | Purpose | |--------|---------| | `forge.lthn.ai/core/go-io` | File system abstraction (`Medium` interface), process utilities | -| `forge.lthn.ai/core/go-config` | Configuration loading (used by `devenv` for `~/.core/config.yaml`) | +| `forge.lthn.ai/core/config` | Configuration loading (used by `devenv` for `~/.core/config.yaml`) | | `forge.lthn.ai/core/go-i18n` | Internationalised UI strings (used by `cmd/vm`) | | `forge.lthn.ai/core/cli` | CLI framework (used by `cmd/vm` for command registration) | | `github.com/stretchr/testify` | Test assertions | diff --git a/go.mod b/go.mod index 1dcea8e..7106e33 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.26.0 require ( forge.lthn.ai/core/cli v0.1.0 - forge.lthn.ai/core/go-config v0.1.0 + forge.lthn.ai/core/config v0.1.0 forge.lthn.ai/core/go-i18n v0.1.0 forge.lthn.ai/core/go-io v0.0.3 github.com/stretchr/testify v1.11.1 diff --git a/go.sum b/go.sum index 8537f76..aae7632 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,6 @@ forge.lthn.ai/core/cli v0.1.0 h1:2XRiEMVzUElnQlZnHYDyfKIKQVPcCzGuYHlnz55GjsM= forge.lthn.ai/core/cli v0.1.0/go.mod h1:mZ7dzccfzo0BP2dE7Mwuw9dXuIowiEd1G5ZGMoLuxVc= forge.lthn.ai/core/go v0.1.0 h1:Ow/1NTajrrNPO0zgkskEyEGdx4SKpiNqTaqM0txNOYI= forge.lthn.ai/core/go v0.1.0/go.mod h1:lwi0tccAlg5j3k6CfoNJEueBc5l9mUeSBX/x6uY8ZbQ= -forge.lthn.ai/core/go-config v0.1.0 h1:bQnlt8MvFvgPisl//jw4IMHMoCcaIt5FLurwYWqlMx0= -forge.lthn.ai/core/go-config v0.1.0/go.mod h1:jsCzg3BykHqlHZs13PDhP/dq8yTZjsiEyZ35q6jA3Aw= forge.lthn.ai/core/go-crypt v0.0.3 h1:KG5dQstPfcohIitZJRF7jEdR4H1gjb4YrxjkzIQ8CGE= forge.lthn.ai/core/go-crypt v0.0.3/go.mod h1:BFHULU7hJBXkg4EXDO62pZvpUctzrzrW9x8gJEaBKX8= forge.lthn.ai/core/go-i18n v0.1.0 h1:F7JVSoVkZtzx9JfhpntM9z3iQm1vnuMUi/Zklhz8PCI=