Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor runServices upArgs logic #1583

Merged
merged 2 commits into from
Jan 21, 2025

Conversation

bkneis
Copy link
Contributor

@bkneis bkneis commented Jan 21, 2025

Fixes #1554

The issue was that the initial up logic that ran docker-compose iterated through runServices and only added those to the upArgs (line 372). The condition when the container already existed (a re run of up) did not do this (line 167). The fix was to add the same logic to add to upArgs only those services defined by runServices. Additionally I refactored it to a function

@bkneis bkneis requested a review from a team January 21, 2025 12:20
pkg/devcontainer/compose.go Outdated Show resolved Hide resolved
pkg/devcontainer/compose.go Show resolved Hide resolved
Copy link
Member

@pascalbreuninger pascalbreuninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bkneis bkneis merged commit 55e219d into loft-sh:main Jan 21, 2025
12 of 23 checks passed
@bkneis bkneis deleted the feature/fix-compose-re-run-servoces branch January 21, 2025 13:41
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.

"runServices" not being used when re-running workspace
2 participants