Skip to content

inject GOOGLE_BUILDABLE from rootDir during local builds - #10970

Open
falahat wants to merge 2 commits into
mainfrom
fix-local-build-google-buildable
Open

inject GOOGLE_BUILDABLE from rootDir during local builds#10970
falahat wants to merge 2 commits into
mainfrom
fix-local-build-google-buildable

Conversation

@falahat

@falahat falahat commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Description

Fix for #10956

Scenarios Tested

TODO: I need to manually test this with a monorepo local-build app

Sample Commands

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for a rootDir option in localBuild, which is injected as the GOOGLE_BUILDABLE environment variable to support monorepos or subdirectories during local builds. A corresponding unit test was added to verify this behavior. The review feedback suggests normalizing backslashes to forward slashes in the rootDir path to ensure cross-platform compatibility for Windows environments.

Comment thread src/apphosting/localbuilds.ts Outdated
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@falahat

falahat commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

I need to manually test this with a monorepo local-build app


const addedEnv = await toProcessEnv(projectId, env);
if (options?.rootDir) {
const normalizedRootDir = options.rootDir.replace(/\\/g, "/");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Add a comment explaining the windows behavior

@falahat

falahat commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

I need to actually confirm if this is 100% required. It doesnt hurt, but online docs suggest this is only relevant for some languages (i.e. golang).

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.

2 participants