Skip to content

Comments

fix(esbuild): improve compose file detection for deep service paths#13202

Merged
czubocha merged 1 commit intomainfrom
sc-3725
Jan 7, 2026
Merged

fix(esbuild): improve compose file detection for deep service paths#13202
czubocha merged 1 commit intomainfrom
sc-3725

Conversation

@czubocha
Copy link
Contributor

Closes #13201

@czubocha czubocha requested a review from eahefnawy December 29, 2025 17:36
@Mmarzex
Copy link
Contributor

Mmarzex commented Dec 29, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@czubocha czubocha changed the title fix(esbuild): improve compose file detection for deep service paths (SC-3725) fix(esbuild): improve compose file detection for deep service paths Dec 29, 2025
@czubocha czubocha requested a review from Copilot December 29, 2025 17:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes compose file detection when services are located in deeply nested directory structures. The fix addresses issue #13201 by increasing the search depth and improving error handling.

  • Increases the maximum directory traversal depth from 3 to 5 levels (though the implementation actually searches 6 levels due to the loop condition)
  • Changes error handling from throwing an error to returning null with informative logging when the compose file cannot be found
  • Adds graceful degradation by continuing the build without compose-level dependencies when the compose file is not found

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@czubocha czubocha merged commit be57f60 into main Jan 7, 2026
16 checks passed
@czubocha czubocha deleted the sc-3725 branch January 7, 2026 15:39
@github-actions github-actions bot locked and limited conversation to collaborators Jan 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sls deploy failed with "Cannot find ‘serverless-compose.yml|yaml’"

2 participants