Skip to content

Conversation

laysakura
Copy link
Contributor

Summary

  • Enable processing of multiple .env.example files throughout the repository
  • Ensure globally unique port allocation across all services in all worktrees
  • Add comprehensive test coverage and sample monorepo for demonstration

Changes

  • Modified sprout create to scan and process all git-tracked .env.example files
  • Enhanced port allocation to recursively check all .env files for uniqueness
  • Added sample monorepo structure demonstrating multi-service setup
  • Comprehensive test suite for multi-env functionality

Test Plan

  • All existing tests pass
  • New test suite test_multi_env.py covers all edge cases
  • Manual testing with sample monorepo works as expected
  • Code quality checks (format, lint) pass

This enables sprout to work seamlessly with monorepo setups where multiple services each have their own .env.example files.

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

…ample files

- Apply ruff formatter changes to improve code quality
- Update tests to properly mock git ls-files command
- Add CHANGELOG entry about git-tracked files behavior
- Ensure all test .env.example files are properly committed to git
@laysakura laysakura merged commit 1c3d94b into main Jun 28, 2025
7 checks passed
@laysakura laysakura deleted the feat-multi-env branch June 28, 2025 02:03
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