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

fix: use serviceDir while injecting requirements to ensure compatibility with v4 Compose #854

Merged
merged 17 commits into from
Feb 11, 2025

Conversation

czubocha
Copy link
Contributor

@czubocha czubocha commented Feb 7, 2025

In v4 Compose, unlike in v3 Compose, separate processes are not spawned for individual services. As a result, the current working directory always remains where serverless-compose.yml is located. Therefore, we need to ensure that the correct absolute path is used instead of a path relative to the service directory. To create an absolute path we can use this.serverless.serviceDir.

Adressess serverless/serverless#12982

@czubocha czubocha self-assigned this Feb 7, 2025
@czubocha czubocha force-pushed the fix-v4-compose branch 2 times, most recently from a3136a1 to c618c7d Compare February 7, 2025 16:48
@czubocha czubocha merged commit bceb737 into master Feb 11, 2025
2 checks passed
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