Skip to content

Move versions to internal/versions#375

Closed
lilydoar wants to merge 1 commit into
lilydoar/stack/8from
lilydoar/stack/9
Closed

Move versions to internal/versions#375
lilydoar wants to merge 1 commit into
lilydoar/stack/8from
lilydoar/stack/9

Conversation

@lilydoar
Copy link
Copy Markdown
Contributor

@lilydoar lilydoar commented May 28, 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 28, 2026 21:54
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: #375, branch: lilydoar/stack/9
@lilydoar lilydoar force-pushed the lilydoar/stack/9 branch from ec4ba7b to a21587b Compare May 28, 2026 21:54
lilydoar added a commit that referenced this pull request May 29, 2026
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: #375, branch: lilydoar/stack/9
lilydoar added a commit that referenced this pull request May 29, 2026
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: #375, branch: lilydoar/stack/9
@lilydoar
Copy link
Copy Markdown
Contributor Author

Closing — the module-organization stack was rebased (devserver move dropped, since devserver must stay exported for temporal to import it). Recreating the stack fresh.

@lilydoar lilydoar closed this May 29, 2026
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