Enter JIRI_ROOT to run jiri update, some hooks need it

Some of the mojo hooks expect to run from the directory containing the Mojo
'src' directory since that's what gclient runhooks does. This needs to be
fixed, but for now this just cd's into the appropriate directory so that the
initial sync works.

Change-Id: Ic3da19150410df3330c262b6eb7857ee5191b0c0
1 file changed
tree: 8130fbf8bce65c9bae866db32b6e67eeecead50c
  1. v2/
  2. bootstrap.sh
  3. LICENSE
  4. README.md
README.md

mojo-manifest

Contains the jiri manifest for the Mojo project

Creating a new checkout

Mojo uses the jiri tool to manage repositories https://github.com/vanadium/go.jiri. This tool manages a set of repositories specified by a manifest. The $JIRI_ROOT variable determines where jiri and the Mojo repositories will be placed. To create a new Mojo checkout run this command with $JIRI_ROOT set to a path to hold the checkout. This path should not exist before running the script. The script requires that you have Go 1.4 or newer installed and on your PATH.

curl https://mojo.googlesource.com/mojo-manifest/+/master/bootstrap.sh?format=TEXT | base64 -d | bash

bootstrap.sh will populate the directory pointed to by $JIRI_ROOT and prompt you to add entries to your PATH.

Setting up your environment

Mojo requires several libraries and tools to build and run. Many are placed within the checkout and updated whenever jiri update runs, but some must be installed on the system. Run

$JIRI_ROOT/src/build/install-build-deps.sh

to install these packages.

See https://github.com/domokit/mojo for instructions on building and running tests for Mojo.