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

Fixing issue with firebase init genkit on Windows #8011

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ifielker
Copy link
Contributor

Fixing issue with firebase init genkit on Windows.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 11.11111% with 8 lines in your changes missing coverage. Please review.

Project coverage is 51.18%. Comparing base (49c5ac5) to head (b32e7d8).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/extensions/runtimes/node.ts 11.11% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8011      +/-   ##
==========================================
- Coverage   51.19%   51.18%   -0.01%     
==========================================
  Files         423      423              
  Lines       29544    29550       +6     
  Branches     6031     6031              
==========================================
+ Hits        15125    15126       +1     
- Misses      13059    13064       +5     
  Partials     1360     1360              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ifielker ifielker requested a review from joehan November 29, 2024 20:50
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

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

LGTM with some nits - thanks for throwing in some extra code cleanup too!

"For a possible workaround run\n npm view genkit version\n" +
"and then set an environment variable:\n" +
" export GENKIT_DEV_VERSION=<output from previous command>\n" +
"and try the firebase init command again",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"and try the firebase init command again",
"and run `firebase init` again",

@@ -482,7 +483,7 @@ export async function writeSDK(
// Build it
logLabeledBullet("extensions", `running 'npm --prefix ${shortDirPath} run build'`);
try {
execFileSync("npm", ["--prefix", dirPath, "run", "build"]);
await spawnWithOutput("npm", ["--prefix", dirPath, "run", "build"]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Since we don't use the output, should we be using wrapSpawn in this file instead?

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.

3 participants