Skip to content

build: use bazel from node modules #16361

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

Merged

Conversation

devversion
Copy link
Member

The goal of 2ce5ffd was to avoid the use of Bazel through the node_modules
because it adds unnecessary code overhead, slows down CI and means that
some tools need to be installed multiple times (such as yarn). Unfortunately
when building a release with Bazel right now, the bazel workspace status script
depends on the global node binary. This means that we need to bring in Node
when running with the --config=release flag.. Since that causes inconsistent behavior
and just complicates the setup, we are using Bazel through Yarn for now. Similar to how
we did it for angular/angular with angular/angular@8fc4ae5.

We need to revisit this overall approach in the future.. but for now this seems to be the
simplest approach and we don't want too much effort into this yet. Seems like a general
question for #dev-infra where we need to figure out the ideal approach.

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jun 21, 2019
@devversion devversion force-pushed the build/use-bazel-from-node-modules branch 2 times, most recently from cc73776 to fa2961a Compare June 21, 2019 21:27
The goal of angular@2ce5ffd was to avoid the
use of Bazel through the `node_modules` because it adds unnecessary code overhead, slows down CI and means that
some tools need to be installed multiple times (such as `yarn`). Unfortunately when building a release with Bazel
right now, the bazel workspace status script depends on the global `node` binary. This means that we need
to bring in Node when running with the `--config=release` flag.. Since that causes inconsistent behavior
and just complicates the setup, we are using Bazel through Yarn for now. Similar to how we did it for
`angular/angular` with angular/angular@8fc4ae5.
@devversion devversion force-pushed the build/use-bazel-from-node-modules branch from fa2961a to be866a1 Compare June 21, 2019 21:29
@devversion devversion added pr: merge safe target: patch This PR is targeted for the next patch release labels Jun 21, 2019
@devversion devversion marked this pull request as ready for review June 21, 2019 21:42
@devversion devversion requested a review from jelbourn as a code owner June 21, 2019 21:42
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Jun 21, 2019
@jelbourn jelbourn merged commit 10370ef into angular:master Jun 21, 2019
andrewseguin pushed a commit that referenced this pull request Jul 2, 2019
The goal of 2ce5ffd was to avoid the
use of Bazel through the `node_modules` because it adds unnecessary code overhead, slows down CI and means that
some tools need to be installed multiple times (such as `yarn`). Unfortunately when building a release with Bazel
right now, the bazel workspace status script depends on the global `node` binary. This means that we need
to bring in Node when running with the `--config=release` flag.. Since that causes inconsistent behavior
and just complicates the setup, we are using Bazel through Yarn for now. Similar to how we did it for
`angular/angular` with angular/angular@8fc4ae5.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants