Skip to content

@bazel/bazel always warn that the binary is global #656

Closed

Description

@alan-agius4

🐞 bug report

Affected Package

@bazel/bazel

Is this a regression?

Not sure

Description

When using @bazel/bazel togather with @angular/bazel a warning is being displayed even when the resolved binary is local

  *** WARNING
    The Bazel binary is being run from a global install.
    
    This means the version may not match the one used in your project.
    We recommend installing the @bazel/bazel package locally in your project.
  ***

However, taking a look at the binary path it is being resolved to the local one

C:\git\cli-repos\my-proj\node_modules\@bazel\bazel\node_modules\@bazel\bazel-win32_x64\package.json

🔬 Minimal Reproduction

ng new my-proj
cd my-proj
ng add @angular/bazel 
ng build

🔥 Exception or Error

  *** WARNING
    The Bazel binary is being run from a global install.
    
    This means the version may not match the one used in your project.
    We recommend installing the @bazel/bazel package locally in your project.
  ***

🌍 Your Environment

Angular Version:

Angular CLI: 8.0.0-beta.11
Node: 10.10.0
OS: win32 x64
Angular: 8.0.0-beta.11
... animations, bazel, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.800.0-beta.11
@angular-devkit/build-angular 0.800.0-beta.11
@angular-devkit/build-optimizer 0.800.0-beta.11
@angular-devkit/build-webpack 0.800.0-beta.11
@angular-devkit/core 8.0.0-beta.11
@angular-devkit/schematics 8.0.0-beta.11
@ngtools/webpack 8.0.0-beta.11
@schematics/angular 8.0.0-beta.11
@schematics/update 0.800.0-beta.11
rxjs 6.4.0
typescript 3.3.4000
webpack 4.29.6

Anything else relevant?
Bazel version 0.24.0

//cc @kyliau,

Activity

  1. added a commit that references this issue on May 29, 2019
    7ced6ba
  2. added a commit that references this issue on May 29, 2019
    99c388e
  3. added a commit that references this issue on Jun 6, 2019
    188ae59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions