GithubHelp home page GithubHelp logo

isabella232 / bazenv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from salesforce/bazenv

0.0 0.0 0.0 40 KB

Manage your Bazel environment

License: BSD 3-Clause "New" or "Revised" License

Go 97.43% Makefile 2.57%

bazenv's Introduction

Master your Bazel environment with Bazenv

Bazel is fiddly. Projects that compile with one version of Bazel don't work with another, and keeping multiple versions of Bazel around is a pain. Bazenv solves this problem by managing your Bazel version on a project by project basis. Bazenv is inspired by jenv and rbenv, which solve the same problem for Java and Ruby.

Installation

  1. Bazenv is built with go. To download: go get -d github.com/salesforce/bazenv/...
  2. Install Bazenv with make deps install. This will build bazenv and its bazel stub.
  3. Make sure $GOHOME/bin is at the beginning of your path.
  4. Install a version of Bazel with bazenv install <version>.
  5. Set the global Bazel version with bazenv global <version>.

Installing additional Bazel versions

  • Use bazenv install to download and install any Bazel version on Bazel's Github releases page.
  • Use bazenv add to add an existing Bazel install directory to Bazenv.

Choosing which Bazel version to run

  • To see all available Bazel versions, use bazenv list.
  • Use bazenv global to set the global Bazel version. This version will be used unless specifically overridden with a local version.
  • Use bazenv local to set a local Bazel version for a given directory. This version will be used for all child directories.

How Bazenv works

  • Bazenv stores configuration and all installed Bazel versions in the ~/.bazenv directory.
  • .bazenv_version files are used to configure the local Bazel version.
  • The Bazenv bazel shim reads from Bazenv's configuration to locate the correct Bazel binary and execute it.

Troubleshooting

  • Make sure Bazenv's bazel shim is before any other bazel binary on your path.
  • bazenv doctor will evaluate your Bazenv environment.

bazenv's People

Contributors

justinharringa avatar rmichela avatar svc-scm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.