Skip to content

Move versions to internal/versions#385

Open
lilydoar wants to merge 1 commit into
lilydoar/stack/16from
lilydoar/stack/17
Open

Move versions to internal/versions#385
lilydoar wants to merge 1 commit into
lilydoar/stack/16from
lilydoar/stack/17

Conversation

@lilydoar
Copy link
Copy Markdown
Contributor

@lilydoar lilydoar commented May 29, 2026

Stacked PRs:


Move versions to internal/versions

versions (the versions.env reader) has no consumer outside the root module.
Application code that isn't part of a public API belongs under internal/,
where the import boundary is compiler-enforced.

versions.go locates versions.env at runtime by walking up from its own source
path (runtime.Caller), so the added directory level requires one more
filepath.Dir to still reach the repo root. Verified at runtime that
versions.env still resolves after the move.

@lilydoar lilydoar requested review from a team as code owners May 29, 2026 21:13
versions (the versions.env reader) has no consumer outside the root module.
Application code that isn't part of a public API belongs under internal/,
where the import boundary is compiler-enforced.

versions.go locates versions.env at runtime by walking up from its own source
path (runtime.Caller), so the added directory level requires one more
filepath.Dir to still reach the repo root. Verified at runtime that
versions.env still resolves after the move.

stack-info: PR: #385, branch: lilydoar/stack/17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant