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: broken deploy with --skip-functions-cache #6433

Merged
merged 5 commits into from Mar 13, 2024
Merged

Conversation

lukasholzer
Copy link
Collaborator

@lukasholzer lukasholzer commented Mar 11, 2024

πŸŽ‰ Thanks for submitting a pull request! πŸŽ‰

Summary

Fixes broken deploys when run with ntl deploy --build --skip-functions-cache inside monorepos.

As the getPathInProject function is not monorepo aware, this breaks on monorepos.

There are more areas that depend on this function, but I'll do this in follow-up PRs to keep the PR size small.

Fixes https://linear.app/netlify/issue/FRA-385/could-not-resolve-vartaskappsdocsnetlifydistrunhandlerstracingjs


For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code πŸ§‘β€πŸ’». This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire πŸ”₯ (e.g. incident related), you can skip this step.
  • Read the contribution guidelines πŸ“–. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) πŸ§ͺ
  • Update or add documentation (if features were changed or added) πŸ“
  • Make sure the status checks below are successful βœ…

A picture of a cute animal (not mandatory, but encouraged)

as the getPathInProject function is not monorepo aware this breaks on monorepos
@lukasholzer lukasholzer requested a review from a team as a code owner March 11, 2024 15:47
Copy link

github-actions bot commented Mar 11, 2024

πŸ“Š Benchmark results

Comparing with 38ae744

  • Dependency count: 1,326 (no change)
  • Package size: 298 MB (no change)
  • Number of ts-expect-error directives: 1,120 ⬇️ 5.27% decrease vs. 38ae744

@@ -42,6 +42,7 @@ module.exports = {
'unicorn/consistent-destructuring': 0,
// TODO: harmonize with filename snake_case in other Netlify Dev projects
'unicorn/filename-case': [2, { case: 'kebabCase' }],
'max-params': 'off',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just useless this linting rule

eduardoboucas
eduardoboucas previously approved these changes Mar 13, 2024
src/commands/deploy/deploy.ts Outdated Show resolved Hide resolved
src/commands/deploy/deploy.ts Outdated Show resolved Hide resolved
src/commands/deploy/deploy.ts Outdated Show resolved Hide resolved
Co-authored-by: Eduardo Bouças <mail@eduardoboucas.com>
eduardoboucas
eduardoboucas previously approved these changes Mar 13, 2024
@lukasholzer lukasholzer merged commit d804a96 into main Mar 13, 2024
40 checks passed
@lukasholzer lukasholzer deleted the fix/fra-385 branch March 13, 2024 13:39
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.

None yet

2 participants