Skip to content
Newer
Older
100755 32 lines (23 sloc) 1.27 KB
1bdf6e3 @cadorn source overlays
cadorn authored Mar 10, 2011
1 Source Overlays
2 ===============
3
4 Source overlays allow you to use a cloned source repository instead of the downloaded archive of a package within a program.
5
6 These overlays are defined in a `sources.json` file as follows:
7
8 {
9 "packages": {
10 "<ID>": {
11 "source": {
12 "location": "<absolutePath>"
13 }
14 }
15 }
16 }
17
18 Where:
19
20 * `<ID>` is the `UID` (minus protocol) of a package or the key used for the `packages` property in `program.json`
21 * `<absolutePath>` is the absolute path to the cloned source repository of the package on your local system
22
23 The loader automatically looks for source overlay files in various places or you can specify your own as an argument on the command line.
24 The following lookup order for source overlay files applies and the first match for a package ID is used.
25
26 1. `--sources ABSOLUTE_PATH` command line argument
27 2. `dirname("/.../program.json") + "/sources.local.json"` (local overlays not committed with program)
28 3. `$HOME/.pinf/config/sources.json` (user-specific overlays that apply to all programs)
f53263c @cadorn include source overlays from /pinf/etc/pinf/surces.json
cadorn authored Aug 22, 2011
29 4. `/pinf/etc/pinf/sources.json` (system-wide overlays that apply to all programs)
30 5. `dirname("/.../program.json") + "/sources.json"` (overlays managed with program)
31
Something went wrong with that request. Please try again.