Marcos Lilljedahl
8969507db6
Add global --experimental flag to gatekeep some features
...
This commit adds a global --experiemntal flag so we can start
gatekeeping some features where we know beforehand that the UX will very
likely change. It also refactors the current --platform flag to be
avaiable under this experimental flag for the moment
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-04-06 13:53:21 -03:00
Andrea Luzzardi
8d7d808024
temporarily disable the platform
field.
...
Need some more time to figure out the correct API.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-04-05 12:13:33 -07:00
Andrea Luzzardi
1428c94679
Merge pull request #2028 from marcosnils/feat/detect_platform
...
Automatically detect target platform based on buildkit worker
2022-04-05 12:04:22 -07:00
Marcos Lilljedahl
34c7a2ff12
Automatically set target platform based on client architecture
...
Set the default platform based on the client's OS and architecture. This
function is the same one that buildkit uses (https://github.com/moby/buildkit/blob/master/frontend/dockerfile/builder/build.go#L100-L102 ) to set the default build target platform
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-04-05 15:30:11 -03:00
Andrea Luzzardi
cf3993a235
task: source: fix vertex name
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-04-04 15:33:33 -07:00
Andrea Luzzardi
0a6fa03c16
client filesystem: remove .dagger from default exclusion
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-04-04 15:33:33 -07:00
Marcos Nils
d00fbff9d5
Merge pull request #1979 from marcosnils/fix/fs_read_file
...
Fixes hang errors when incorrectly using files as dagger.#FS on client filesystem
2022-04-01 15:17:50 -03:00
Marcos Lilljedahl
7ffbef33b5
Report error if FS is incorrectly handled on client filesystem read
...
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-04-01 13:25:58 -03:00
Andrea Luzzardi
57770d347f
copy: support for include/exclude
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-31 18:13:49 -07:00
Marcos Lilljedahl
66153c6194
Prevents files to be used as input of dagger.#FS
...
Errors out in the PreRun phase of the clientfilesystemreader task since
otherwise, dagger execution would hang
Fixes #1977
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-03-31 19:33:18 -03:00
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
Helder Correia
d771699df9
Move connecting socket to client: network
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-28 18:16:07 +00:00
Helder Correia
6a2bbc62e0
Rename dagger.#Service
to dagger.#Socket
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-28 17:56:25 +00:00
Helder Correia
5abd77f4f2
Move types and plan back to main dagger package
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-28 12:18:33 +00:00
Helder Correia
770acd3ce2
Expand user home dir in client filesystem
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-25 20:25:36 -01:00
Helder Correia
7a8153910c
Add export and load for dagger images
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-25 15:04:29 -01:00
Tom Chauveau
c3a6d80716
Complete exportImageConfig to bind platform metadata.
...
Resolves #1802
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-03-22 12:21:25 +01:00
Andrea Luzzardi
8b7e591851
Merge pull request #1790 from shykes/nop
...
dagger.#Nop: work around bugs in the DAG resolver
2022-03-16 13:40:26 -07:00
Andrea Luzzardi
82de3d4aca
Merge pull request #1768 from sipsma/merge-diff
...
Add support for Merge and Diff fs operations.
2022-03-14 22:29:44 -07:00
Solomon Hykes
9d1e7e2acc
dagger.#Nop: work around bugs in the DAG resolver
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-03-12 07:05:34 +00: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
Erik Sipsma
b67d2d44ad
Add support for Merge and Diff fs operations.
...
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2022-03-10 20:22:14 -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
Sam Alba
c5660995f5
plan: raise error on cyclic task + cue error formatting
...
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2022-03-09 16:26:39 -08:00
Andrea Luzzardi
d79c377205
Merge pull request #1729 from helderco/remove-path-lookup
...
Remove path based task lookup
2022-03-09 15:17: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
Helder Correia
34b6c289dd
Remove path based task lookup
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-09 11:29:26 -01: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
Andrea Luzzardi
f72dde1d0d
Merge pull request #1704 from helderco/inputs-outputs-cleanup
...
Inputs/outputs cleanup
2022-03-08 16:16:15 -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
64e8afb3f3
Merge pull request #1681 from helderco/trim-secret
...
Add #TrimSecret task
2022-03-08 15:51:32 -08:00
Helder Correia
24d3f82fc7
Cleanup inputs, outputs and proxy
...
Superceded by Client API.
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-08 20:45:28 -01: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
Helder Correia
da90baa087
Add new Client API
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-07 17:13:16 -01:00
Richard Jones
7bcf9a9402
Implements dagger project init
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 15:44:11 -07:00
Helder Correia
5ca5f8a729
Add #TrimSecret task
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-03-03 14:58:30 -01: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
e63b74b08e
Remove commented pre-Europa pipelines code
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
034cd74ed0
Remove environment
...
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Helder Correia
9385a6346a
Rename image config field for consistency
...
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
2022-02-17 11:14:57 -01:00
Solomon Hykes
c2766c265b
Merge dagger.io/dagger/engine into dagger.io/dagger
...
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-02-16 19:40:28 +00:00
Andrea Luzzardi
bf6d463833
Merge pull request #1557 from talentedmrjones/europa-engine-exec-secret-env
...
implemented ability to pass #Secret as env var
2022-02-15 16:30:13 -07:00
Richard Jones
3c57630b0e
implemented ability to pass #Secret as env var
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-15 12:58:35 -07:00
Richard Jones
071c3bafe1
Implemented --no-vendor
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-14 14:26:37 -07:00
Richard Jones
f3a75f8d74
improved handling of p []cue.Selector in for loop
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-05 10:01:06 -07:00
Richard Jones
3ce41fedf1
improved handling of p []cue.Selector
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-05 09:54:38 -07:00
Richard Jones
a087161fbb
implemented #DecodeSecret as engine task
...
Signed-off-by: Richard Jones <richard@dagger.io>
2022-02-04 14:03:55 -07:00
Andrea Luzzardi
7425c0e60f
Merge pull request #1538 from talentedmrjones/europa-engine-decode-secret
...
Fix data race with TransformSecret
2022-01-31 18:33:40 -08:00