feat(dev): autoprovision devenv when making a new git worktree#109889
Merged
feat(dev): autoprovision devenv when making a new git worktree#109889
Conversation
joshuarli
commented
Mar 4, 2026
|
|
||
| ### You can override the exported variables with a .env file | ||
| # All exports should happen before here unless they're safeguarded (see devenv error reporting below) | ||
| if [ -f "${SENTRY_ROOT}/.env" ]; then |
Member
Author
There was a problem hiding this comment.
we don't need SENTRY_ROOT; this was from the era where we had shared sentry+getsentry venvs
joshuarli
commented
Mar 4, 2026
| commands_to_run+=("devenv sync") | ||
| fi | ||
|
|
||
| python3 -m tools.docker_memory_check |
Member
Author
There was a problem hiding this comment.
i took the liberty of removing this; unused for a long time now
joshuarli
commented
Mar 4, 2026
| CI=true pnpm test components/avatar.spec.tsx | ||
| ``` | ||
|
|
||
| > For detailed development patterns, see nested AGENTS.md files: |
Member
Author
There was a problem hiding this comment.
these deleted instructions are already mentioned below
evanpurkhiser
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
supersedes #108406 and is a more focused version of that
after this,
git worktree add ../wherever -b branchwill automatically provision the worktree's env withdevenv syncwhich is convenient, pre-commit hooks all work, etc.and
devenv sync/direnv allownow plays nice with worktreesplus a few cleanups here and there