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 pnpm support for cf3 #5467

Merged
merged 7 commits into from
Jan 30, 2023
Merged

Fix broken pnpm support for cf3 #5467

merged 7 commits into from
Jan 30, 2023

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Jan 27, 2023

Due to the way pnpm resolves packages with peer dependencies, location of the firebase functions sdk package isn't where the CLI expects it to be.

We make the logic for finding the binary associated Firebase Functions SDK more robust by checking list of possible paths where it might exist. We also add integration test for pnpm in the functions discovery test.

Fixes #5448

@taeold
Copy link
Contributor Author

taeold commented Jan 27, 2023

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2023

Codecov Report

Base: 56.28% // Head: 56.28% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (b70f8a3) compared to base (5811aea).
Patch coverage: 5.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5467      +/-   ##
==========================================
- Coverage   56.28%   56.28%   -0.01%     
==========================================
  Files         315      315              
  Lines       21348    21355       +7     
  Branches     4354     4355       +1     
==========================================
+ Hits        12016    12019       +3     
- Misses       8291     8295       +4     
  Partials     1041     1041              
Impacted Files Coverage Δ
src/deploy/functions/runtimes/node/index.ts 38.83% <5.00%> (-1.80%) ⬇️
src/emulator/auth/state.ts 85.43% <0.00%> (+0.56%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@taeold taeold merged commit accea7a into master Jan 30, 2023
@taeold taeold deleted the cf3-pnpm branch January 30, 2023 19:05
taeold added a commit that referenced this pull request Jan 31, 2023
Due to the way pnpm resolves packages with peer dependencies, location of the firebase functions sdk package isn't where the CLI expects it to be.

We make the logic for finding the binary associated Firebase Functions SDK more robust by checking list of possible paths where it might exist. We also add integration test for pnpm in the functions discovery test.

Fixes #5448
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.

Version 11.21.0 breaks firebase deploy functions compatibility with pnpm
3 participants