This method only works with linux (x86_64 and aarch64 ) and darwin (x86_64) systems. The bootstrap procedure requires that you have Go 1.6 or newer and Git installed and on your
PATH. Below command will create checkout in new folder called
curl -s https://raw.githubusercontent.com/fuchsia-mirror/jiri/master/scripts/bootstrap_jiri | bash -s fuchsia cd fuchsia export PATH=`pwd`/.jiri_root/bin:$PATH jiri import jiri https://fuchsia.googlesource.com/manifest jiri update
Create a root folder called
fuchsia, then use git to manually clone each of the projects mentioned in this manifest, put them in correct paths and checkout required revisions.
HEAD should be on
origin/master where no revision is mentioned in manifest.
Set GOPATH to
fuchsia/go, cd into
fuchsia/go/src/fuchsia.googlesource.com/jiri and run
The above command should build jiri and put it into your jiri repo root.
To run jiri's tests, run the following from the
export GOPATH=$(pwd) go test $(go list fuchsia.googlesource.com/jiri/... 2>/dev/null | grep -v /jiri/vendor/)
(The use of
grep here excludes tests from packages below
src/fuchsia.googlesource.com/jiri/vendor/ which don't pass.)
If build complains about undefined
http_parser_* functions, please remove
http_parser from your library path.