commit | 86acaeb4680522d4013bc40a957a6ea524014fef | [log] [tgz] |
---|---|---|
author | James Robinson <jamesr@chromium.org> | Mon Nov 02 15:16:20 2015 -0800 |
committer | James Robinson <jamesr@chromium.org> | Mon Nov 02 15:16:20 2015 -0800 |
tree | 0cf39411db10579c7b662039887710f102d11c31 | |
parent | 1dde1cc70f615cefe5b7cd2741d01e862b942287 [diff] |
Perform bootstrap in two stages This first does a jiri update using a minimal manifest to set up the jiri tool itself and then does an update with the default manifest. If the bootstrap update fails the script deletes the whole JIRI_ROOT since it is in an unusable state. If the second update which downloads a ton more stuff fails the JIRI_ROOT is left untouched as it is possible to run jiri update within it manually. Change-Id: I531e94c9adccebb4330df4a95c637dc27ece2229
Contains the jiri manifest for the Mojo project
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 and Git installed and on your PATH.
export JIRI_ROOT=/some/path/that/does/not/exist curl https://mojo.googlesource.com/mojo-manifest/+/master/bootstrap.sh?format=TEXT | base64 -d | bash export PATH=$JIRI_ROOT/devtools/bin:$JIRI_ROOT/depot_tools:$PATH
bootstrap.sh will create and populate the directory pointed to by $JIRI_ROOT
.
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.
To submit a patch in the Mojo repo do the following
cd $JIRI_ROOT/src # write some awesome stuff, commit to local branch git checkout -b branch_name vim some_file ... git commit ... # upload the patch to gerrit jiri cl mail