summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-12-07 16:55:04 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-12-07 16:55:04 +0100
commitcf7acd0af100bd6dc21b87dc4308699bc144b35a (patch)
treed7aa96395b984f5fcb053084aeeb88a27d75f059 /examples
parent8767afa0638edc4d3a8995dc96ebfeb6703fc6a5 (diff)
Add example how to reference a source object
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'examples')
-rw-r--r--examples/packages/example_3/pkg.toml6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/packages/example_3/pkg.toml b/examples/packages/example_3/pkg.toml
index 42ad00c..c8cd1cf 100644
--- a/examples/packages/example_3/pkg.toml
+++ b/examples/packages/example_3/pkg.toml
@@ -18,6 +18,12 @@ runtime = []
[phases]
unpack.script = '''
+ {{#each sources}}
+ echo "{{@key}} {{this.url}}"
+ echo " {{this.hash.hash}}"
+ ls /inputs/{{@key}}-{{this.hash.hash}}.source
+ {{/each}}
+
mkdir /build
echo "#BUTIDO:PHASE:unpack"
'''