Skip to content

Add a worktree environment helper - #752

Merged
laughingman7743 merged 2 commits into
masterfrom
chore/add-worktree-env-helper
Aug 11, 2026
Merged

Add a worktree environment helper#752
laughingman7743 merged 2 commits into
masterfrom
chore/add-worktree-env-helper

Conversation

@laughingman7743

Copy link
Copy Markdown
Member

WHAT

Add a worktree-env script that links the main checkout .env file into the current git worktree.
Expose the script through the just worktree-env recipe and document the workflow in AGENTS.md.

WHY

Gitignored environment files are not copied when git creates a worktree.
Without the link, AWS integration tests fail before collection even though the main checkout already has the required configuration.

The helper derives the main checkout from the git common directory, refuses to replace a regular .env file, and makes no change when run from the main checkout.

TESTING

  • bash syntax validation
  • just worktree-env, including an idempotent second run
  • Verified that the generated link remains gitignored.
  • Verified that execution from the main checkout makes no change.
  • just lint
  • just docs lint

Comment thread justfile Outdated
@laughingman7743
laughingman7743 marked this pull request as ready for review August 11, 2026 06:26
@laughingman7743
laughingman7743 merged commit 279d482 into master Aug 11, 2026
23 of 24 checks passed
@laughingman7743
laughingman7743 deleted the chore/add-worktree-env-helper branch August 11, 2026 06:26
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