Tom Chauveau
19c0f999f4
Fix export cache issue
...
Resolve #1551 and #1020 .
We are never returning the result of solved operations so Buildkit could not
cache the layer.
This commit implements a simple system to forward operations' result to the
main build to cache it.
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-03-31 20:36:50 +02:00
Andrea Luzzardi
ae4e61aaa1
dagger do: Improve help message
...
- Only print first line of comment
- Add "Available Options" section header
Fixes #1777
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-11 12:55:03 -08:00
Richard Jones
770be271f1
errors on missing packages suggests project update
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-10 17:29:02 -07:00
Andrea Luzzardi
993c706faa
do: simplify help management
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-10 15:11:55 -08:00
Andrea Luzzardi
f987fe0693
dagger do: fix --help regression caused by #1725
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-09 10:21:49 -08:00
Andrea Luzzardi
9f2d56f3c4
do: verify the action exists before running
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-08 18:34:47 -08:00
Richard Jones
57cea9eb6c
implements dagger project update
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-08 16:58:20 -07:00
Andrea Luzzardi
b33b75a570
runner: switch to client API
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-07 16:03:36 -08:00
Andrea Luzzardi
0786410bbd
Fix partial CUE tree run for dagger do
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-07 15:56:06 -08:00
Richard Jones
7bcf9a9402
Implements dagger project init
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 15:44:11 -07:00
Richard Jones
6cdf13223c
implements dagger do
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-01 13:01:26 -07:00
Joel Longtine
034cd74ed0
Remove environment
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Richard Jones
071c3bafe1
Implemented --no-vendor
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-14 14:26:37 -07:00
Andrea Luzzardi
5016cf5e30
netlify: Europa port
...
- Fix netlify.#Deploy (there's still FIXMEs)
- Externalize the `deploy.sh` script
- Add tests
- Misc engine fixes for more explicit error messages
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-20 16:10:14 -08:00
Andrea Luzzardi
2b30580217
Support for partially running a DAG
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-13 15:52:13 -08:00
Joel Longtine
816dfc8ca0
Allow hidden tasks
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-01-12 12:58:27 -07:00
Andrea Luzzardi
fb16ac8b29
vendoring: support multiple modules
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 16:51:54 -08:00
Richard Jones
7322359797
MakePath rather than ParsePath
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 14:40:34 -07:00
Richard Jones
b4bcbab311
passing struct to plan.Load
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 11:54:50 -07:00
Richard Jones
c61d47722e
allowing --with to fill root object
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 11:32:05 -07:00
Richard Jones
1d8834b9b1
implemented --with to fill inputs.params
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-01-04 10:23:21 -07:00
Andrea Luzzardi
2982a0dda0
engine: Task PreRun Hook
...
Tasks now have a PreRun hook that gets called before buildkit kicks in.
Allows to support local access without special casing.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-24 00:59:49 +01:00
Andrea Luzzardi
9c81a155c9
engine: Make paths relative to the CUE file they're defined in
...
Fixes #1309
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-23 13:48:47 -08:00
Tom Chauveau
c08f262ef5
Add platform configuration in plan.go
to set platform in context.
...
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2021-12-23 15:29:25 +01:00
Andrea Luzzardi
4feb2c7048
europa: up: support --output
...
Support `dagger up --output <file.json>` or `-` for stdout. This will
write the computed layer.
Can be used for tests, e.g.
```
run dagger up --output -
assert_output --partial foobar
```
Fixes #1220
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-21 15:17:51 +01:00
Richard Jones
aa268561bc
fixes issue where dagger hands when input directory does not exist
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 13:37:20 -07:00
Richard Jones
03a740ff1e
input to inputs
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Richard Jones
d43bc7dc53
context -> input
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-17 12:30:35 -07:00
Andrea Luzzardi
2b22d1c981
plan: improve log messages
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-09 14:17:19 -05:00
Richard Jones
83b10d4031
refactored finding of cue.mod parent
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-08 15:28:33 -07:00
Richard Jones
5c9965f10a
passings args to cue loader to mimick cue eval
...
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-08 15:28:33 -07:00
Andrea Luzzardi
5b7b1cab79
Migrate dagger.#Secret and dagger.#Stream to new format
...
- Refactored to keep every transformation of built-in types (e.g. FS,
Secret, etc) to/from CUE in the same place (plancontext)
- dagger.#Service and dagger.#Secret are now following the new FS-like format
(e.g. `_service: id: string`)
- Backward compatibility
- dagger.#Stream is now an alias for dagger.#Service
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-01 17:33:35 -08:00
Andrea Luzzardi
0aea10d23e
dagger.#FS support
...
- Implement dagger.#FS support
- Migrate `context.imports` to dagger.#FS
- Backward compat: dagger.#FS can be passed in lieu of a
dagger.#Artifact
- For instance, an import (`dagger.#FS`) can be passed to the current
`yarn.#Package` implementation
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-11-30 12:58:50 -08:00
Andrea Luzzardi
81ec746d2c
core: component -> task
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-11-24 16:58:24 -08:00
Andrea Luzzardi
2a4db167e4
runtime: new execution engine
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-11-24 16:51:52 -08:00