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
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
b59c020631
Merge pull request #58 from blocklayerhq/buildkit-errors
...
cleanup buildkit errors everywhere
2021-01-20 18:23:25 -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
41515c931e
dagger.Value: make compiler instance private
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 16:13:33 -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
Andrea Luzzardi
58aa298581
Fix locking around Fill and Lookup
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 12:16:56 -08:00
Andrea Luzzardi
e090f657bb
solver: solve synchronously
...
This forces Solve() to be synchronous and ensures operations don't get
discarded because of optimizations.
Improves fix for #14
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-15 14:44:22 -08:00
Andrea Luzzardi
0a66b87d7d
compute: spit out errors earlier
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-14 18:40:30 -08:00
Andrea Luzzardi
22fb218b28
component: do not fail if #dagger
marker has no compute
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-14 18:01:45 -08:00
Andrea Luzzardi
9e0bb85a1b
fs: don't panic when handling scratch output results
...
Fixes #22
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-14 17:37:07 -08:00
Andrea Luzzardi
16fd14b0c9
cmd: wire --input flag into client
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-14 15:21:27 -08:00
Andrea Luzzardi
f8a2109aba
env.walk: inject contextual logging information
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-13 18:18:48 -08:00
Andrea Luzzardi
e09723861f
re-wire logging on top of zerolog
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-13 18:18:48 -08:00
Andrea Luzzardi
49f0c0e149
cmd: re-use existing ui library
...
Also, move CLI-only utils into `cmd` rather than the top-level package.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-13 14:43:08 -08:00
Andrea Luzzardi
968341fb74
env: no pointer to mutex
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-13 14:30:27 -08:00
Solomon Hykes
338b3d4b46
Protect cueflow calls with mutex
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-13 14:30:27 -08:00
Andrea Luzzardi
b5427cfbaa
compiler: properly format cue errors
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-12 11:23:40 -08:00
Solomon Hykes
8b105003bb
Component.Compute: force "real" solve. Fixes #14 .
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-12 10:31:50 -08:00
Andrea Luzzardi
eef9c7fafd
spec: updated generated spec
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-11 18:56:31 -08:00
Andrea Luzzardi
4ad7b6e90e
spec: fix linter
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-11 18:42:32 -08:00
Andrea Luzzardi
c093a38d95
component: stop mixing pointers and non pointers
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-11 18:05:52 -08:00
Andrea Luzzardi
fedd85f09d
exec: correctly lookup mounts. Fixes #6
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-11 18:05:33 -08:00
dubo-dubon-duponey
07a3e6b02d
Fix #9
...
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-11 16:28:13 -08:00
Andrea Luzzardi
10224682f7
client: keep resource initialization and cleanup together
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-11 11:51:15 -08:00
dubo-dubon-duponey
0097c73931
Fix crash
...
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-11 11:09:08 -08:00
Solomon Hykes
00414449b7
Clean up debug messages & comments
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-09 17:25:12 -08:00
Solomon Hykes
216e808465
Add test to reproduce crash computing examples/simple
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-09 17:22:51 -08:00
Solomon Hykes
27a44a9e58
Fix bug in Env.Walk
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-09 17:07:39 -08:00
Andrea Luzzardi
2dfe2fccbe
linter: ensure make generate is up to date
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-08 17:29:06 +01:00
Andrea Luzzardi
adf3511b1e
fix lint errors, enable CI
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-08 17:18:34 +01:00
Solomon Hykes
c5842f894a
clean up & bugfix
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-07 16:54:52 -08:00
Solomon Hykes
3162ca0991
Refactor
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-07 13:57:39 -08:00
Solomon Hykes
30f75da114
Move prototype 69-dagger-archon to top-level
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2020-12-29 18:45:16 -08:00