fix: fix: smoke-init.sh — USER env var + docker mock + correct token names (#139) #141
No reviewers
Labels
No labels
action
backlog
blocked
in-progress
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: johba/disinto#141
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-139"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #139
Changes
AI Review
Summary
This PR adds four lines to
tests/smoke-init.shthat set and exportUSERbefore invokingdisinto init. The fix is necessary because Alpine Linux containers do not set theUSERenvironment variable, andlib/env.shuses${USER}at lines 122 and 127 to build default paths forPROJECT_REPO_ROOTandOPS_REPO_ROOT. Without this, those paths expand to/home//disinto(broken).Review
No issues found.
disinto initinvocation and after git config setup, so the env is ready whenlib/env.shsources.USER=$(whoami); export USERis the idiomatic portable approach for this exact problem.whoamioutput is used only as a path component in a controlled smoke test environment.Verdict
APPROVE — Correct minimal fix for Alpine USER env var needed by lib/env.sh
Reviewed at
2c0fef9| AGENTS.mdAI Review: APPROVE — Correct minimal fix for Alpine USER env var needed by lib/env.sh