commit | 9e84143aa77d5f74b6b30de257f6ec22f0ee47df | [log] [tgz] |
---|---|---|
author | Chingjun Lau <chingjun@google.com> | Mon Dec 10 11:24:18 2018 -0800 |
committer | Chingjun Lau <chingjun@google.com> | Mon Dec 10 22:44:19 2018 -0800 |
tree | 041d25f3ac127636c1f31df9504f84bb8be56a1a | |
parent | c5b09e3aeee7ff4819648a00b5487c64922f9ee6 [diff] |
[sdk][bazel] Use the multi root scheme properly, for the package spec file as well Multi root scheme has just recently landed on the front end compiler. Here are some changes to make sure that we use the scheme correctly. Package spec file needs to be in multi root scheme as well for the package resolution to work correctly. Change-Id: I47dbd9c11d5f67957b556849dc91d3f3ff734828
This repository is for scripts useful when hacking on Fuchsia. This repository should contain scripts that perform tasks spanning multiple repositories. Scripts that only operate within a single repository should live in the relevant repository.
The push-package.py script pushes the files listed in the given manifests files. No checking is performed for incremental changes.
The sample command lines below can be used to build Modular and then push those files to the default device. This assumes you have already booted your device with a version of Fuchsia that contains the most recent version of all other packages. This command line uses the “system_manifest” file from each of the modular directories, such as modular, modular_dev, and modular_tests.
cd $FUCHSIA_DIR fx build peridot:modular_all scripts/push-package.py out/debug-x64/package/modular*/system_manifest
fx publish
will take a package from the build and create a Fuchsia package manager package from a build package. It will then add the package to a local update respository which, by default, is put at ${FUCHSIA_BUILD_DIR}/amber-files
. It will also add the package content files to the update repository and name these file after their Merkle Root. If a package name is supplied to fx publish
, only that package will be processed. If no name is supplied, all the packages made by the build will be included.