Commit Graph

1663 Commits

Author SHA1 Message Date
Solomon Hykes
1954c3f731 dagger compute [--input-dir TARGET=DIR] [--input-string TARGET=STRING] [--input-cue CUE] [--input-git REMOTE#REF]
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-31 22:48:30 -08:00
Solomon Hykes
af9581c28a Typo in examples/simple
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-30 18:24:26 -08:00
Solomon Hykes
ae577baf8c Typo in README
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-30 18:24:26 -08:00
Solomon Hykes
fa2cfc1267 Fix examples/simple (cannot load across package imports)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-30 00:25:58 -08:00
Dan POP
23a1211cdf Update gen.sh to remove redundant error check
cue eval spec.cue >/dev/null removed (redunant per @shykes)

Signed-off-by: Dan POP <dan.papandrea@sysdig.com>
2021-01-28 22:38:38 -08:00
Solomon Hykes
c4e55a6915 Refactor how client prepares environment. Inputs may now reference local directories
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Solomon Hykes
6f4577d501 Fix and improve examples/simple
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Solomon Hykes
a26b767780 Fix bug in localdir (optional fields in spec not supported)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Solomon Hykes
3e5063828a Fix bug in exec/mount
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Andrea Luzzardi
71e079c784
Merge pull request #82 from blocklayerhq/cue-0.3.0-beta.3
cue: update to v0.3.0-beta.3
2021-01-28 12:55:59 -08:00
Andrea Luzzardi
4e760887db cue: update to v0.3.0-beta.3
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-28 12:52:13 -08:00
Solomon Hykes
a282abfeb9 README: better intro, getting started instructions
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-27 12:09:34 -08:00
Andrea Luzzardi
cc5a48d39b
Merge pull request #76 from blocklayerhq/output-no-merge
output: merge base/input/output into a single state.cue
2021-01-26 16:53:32 -08:00
Solomon Hykes
f933278d43 Fix spec validation & merge so that default values are correctly applied
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-26 16:52:14 -08:00
Andrea Luzzardi
2009561ba5
Merge pull request #75 from dubo-dubon-duponey/tests
Work on integration tests
2021-01-26 13:27:53 -08:00
Andrea Luzzardi
04526b5b78 output: merge base/input/output into a single state.cue
Exporting base/input/output separately causes merge errors.
For instance, `foo: string | *"default foo"` gets serialized as
`{"foo":"default foo"}`, which will fail to merge if output contains
a different definition of `foo`.

This change temporarily merges the 3 streams together before
serializing.

Fixes #51

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-26 12:12:42 -08:00
dubo-dubon-duponey
707dbd0256
Work on integration tests
- add new entries for #70 and #74
- cleaned-up / enriched a little bit compute and exec tests

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-26 11:40:38 -08:00
Andrea Luzzardi
d06070b85a
Merge pull request #73 from blocklayerhq/exec-dir
op: exec: fix `dir`
2021-01-25 16:43:04 -08:00
Andrea Luzzardi
75fbddf6be op: exec: fix dir
Fixes #30

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-25 16:19:20 -08:00
Solomon Hykes
e10025d688 Refactor op/script/component loading and spec validation
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-25 11:36:18 -08:00
Solomon Hykes
bbe16283ab Incremental cleanup: wrap env instance in a Value
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-25 11:36:18 -08:00
Solomon Hykes
795b7f585c Clean up client config. Preparation for fixing local dir issues
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-22 17:15:22 -08:00
Solomon Hykes
eab6028b70 Replace Fillable interface with a concrete wrapper
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-21 23:46:58 -08:00
Andrea Luzzardi
2ee27e83f3
Merge pull request #65 from blocklayerhq/fix-value-json
Fix bug in Value.JSON(), with regression test
2021-01-21 15:52:16 -08:00
Andrea Luzzardi
1a12acafc8
Merge pull request #64 from blocklayerhq/cue-error-tests
Unit tests to reproduce issue #19 and narrow down root cause.
2021-01-21 15:51:51 -08:00
Solomon Hykes
7322ed1aa4 Fix bug in Value.JSON(), with regression test
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-21 15:27:09 -08:00
Solomon Hykes
91654ba786 Unit tests to reproduce issue #19 and narrow down root cause.
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-21 15:24:00 -08:00
Andrea Luzzardi
007b10f455 explicit log message when failing to Fill
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-21 12:16:10 -08:00
Andrea Luzzardi
b4d16b0268 fix .gitignore
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-21 10:40:11 -08:00
Andrea Luzzardi
05b45aa636
Merge pull request #59 from blocklayerhq/cue-lint-all
lint all cue files
2021-01-20 21:46:31 -08:00
Andrea Luzzardi
2e026e2150
Merge pull request #62 from blocklayerhq/upgrade-cue-0.3.0-beta.2
upgrade cue to v0.3.0-beta.2
2021-01-20 19:12:11 -08:00
Andrea Luzzardi
70677c411f upgrade cue to v0.3.0-beta.2
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 19:08:52 -08:00
Andrea Luzzardi
31ffe23885
Merge pull request #60 from blocklayerhq/data-race-detector
ci: enable data race detector
2021-01-20 19:04:22 -08:00
Andrea Luzzardi
6ab7f88007 lint all cue files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:59:21 -08:00
Andrea Luzzardi
843f24d763
Merge pull request #61 from blocklayerhq/undefined-prop-test
test: re-enable undefined prop test
2021-01-20 18:58:58 -08:00
Andrea Luzzardi
69cd9dd323 test: re-enable undefined prop test
Rather than checking for failure, we verify that the computable part of
the configuration gets outputted.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:54:44 -08:00
Andrea Luzzardi
5fa527d721 ci: enable data race detector
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:44:29 -08:00
Andrea Luzzardi
b59c020631
Merge pull request #58 from blocklayerhq/buildkit-errors
cleanup buildkit errors everywhere
2021-01-20 18:23:25 -08:00
Andrea Luzzardi
72c0851e01
Merge pull request #55 from dubo-dubon-duponey/test-plus
Support additional arguments for dagger binary
2021-01-20 18:20:47 -08:00
Andrea Luzzardi
a9698ccd18
Merge pull request #57 from blocklayerhq/clean-abort-non-concrete
script: abort execution with a warning when the op is not concrete
2021-01-20 18:06:32 -08:00
Andrea Luzzardi
0381c58d80 cleanup buildkit errors everywhere
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:05:40 -08:00
Andrea Luzzardi
4edc5764e5 script: abort execution with a warning when the op is not concrete
Fixes #28

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 17:34:15 -08:00
Andrea Luzzardi
faecc0a1ba
Merge pull request #56 from blocklayerhq/isolate-compiler
dagger.Value: make compiler instance private
2021-01-20 16:20:55 -08:00
Andrea Luzzardi
41515c931e dagger.Value: make compiler instance private
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 16:13:33 -08:00
dubo-dubon-duponey
d09b1b52bb
Support additional arguments for dagger binary
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-20 16:00:34 -08:00
Andrea Luzzardi
1d64422320
Merge pull request #54 from blocklayerhq/concurrency
Fix locking around Fill and Lookup
2021-01-20 14:30:36 -08:00
Andrea Luzzardi
425bbace9e test: fix fetch container test
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 14:24:06 -08:00
Andrea Luzzardi
d22326b512 export: log exported value
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 13:03:28 -08:00
Andrea Luzzardi
644713e3f9 spec: simplify signature
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 13:01:45 -08:00
Andrea Luzzardi
5e5ef6b843 value wrapper: better isolation of the underlying cue.Value
Ported from #17

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 12:55:44 -08:00