Commit Graph

317 Commits

Author SHA1 Message Date
Tom Chauveau
bc87547390
fix: explicit dagger project usage
Resolves: #2091
Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
2022-04-13 13:46:41 +02:00
teddylear
7cf8c280af tests: Adding update to project info for negative test case
Signed-off-by: teddylear <teddylear@gmail.com>
2022-04-07 17:17:42 -04:00
Kenneth Lear
5759071bd7 test: Update project info command to pass lint and test to make sure TEMPDIR is there
Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
2022-04-06 21:26:46 -04:00
Kenneth Lear
90d3724d6a feat: Adding project info command to find where project is located
Signed-off-by: Kenneth Lear <teddylear@protonmail.com>
2022-04-06 17:52:50 -04:00
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
Marcos Lilljedahl
d80acf805b Add experimental way to set a target platform when building
Add an --experimental-platform flag to the do command to allow
overriding the default auto-detected build platform until we find the
time to think about the definitive multi-platform builds UX

Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2022-04-05 18:24:14 -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
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
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
Andrea Luzzardi
e9d3b2fd15
Merge pull request #1801 from aluzzardi/ci-telemetry
telemetry: include CI events
2022-03-14 16:11:26 -07:00
Andrea Luzzardi
bf3e219848 telemetry: include CI events
Fixes #1205

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-14 12:44:22 -07:00
Andrea Luzzardi
e8788cb26b dagger do: list actions at the beginning
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-11 12:55:03 -08: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
Andrea Luzzardi
993c706faa do: simplify help management
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-10 15:11:55 -08:00
Joel Longtine
43b9df74a8 Add test
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-10 15:15:50 -07:00
Joel Longtine
b3ac2b7167 Change message
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-10 14:55:52 -07:00
Joel Longtine
2d4b6ef2ee Print error for 0.1.0 plans being loaded
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-10 14:53:37 -07:00
guillaume
8c54935349 Move cache flags to 'do' operation
Move cache flags to 'dagger do' as it will only become relevant for this dagger command

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-03-10 19:34:10 +01:00
Andrea Luzzardi
05cc2adec5
Merge pull request #1740 from talentedmrjones/remove-up-command
removes dagger up in favor of dagger do
2022-03-10 10:21:48 -08:00
Jeremy Adams
5c0ce279b6 Hide default completion command
Signed-off-by: Jeremy Adams <jeremy.adams.pdx@gmail.com>
2022-03-09 19:57:48 -08:00
Andrea Luzzardi
80850e1e00
Merge pull request #1674 from grouville/windows-logs
Windows escape sequence fix
2022-03-09 17:12:15 -08:00
Solomon Hykes
acd44a55b2 Hide dagger doc
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2022-03-10 00:49:31 +00:00
Richard Jones
6b81dc439d
removed dagger up in favor of dagger do
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-09 14:00:45 -07:00
guillaume
52655916c6 Windows escape sequence fix
Our logger wasn't entirely compatible with Windows escape sequences when not in TTY mode. This fix changes the stderr to one that automatically transforms the escape sequences to some Windows compatible ones.

Signed-off-by: guillaume <guillaume.derouville@gmail.com>
2022-03-09 14:05:35 +01:00
Andrea Luzzardi
e1b76f628a telemetry: track the correct action
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-08 23:32:01 -08:00
Andrea Luzzardi
c17ce97381 telemetry: ensure events are not dropped
- Move chan sync code immediately after operation
- Fix git hashing when not in a git repo

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-08 23:04:58 -08:00
Joel Longtine
6e95fdefc6 Fix bad merge
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 21:10:40 -07:00
Joel Longtine
8a63f60cd0 Remove TrackPlanCommand + cleanup concurrent async tracking code
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 21:04:26 -07:00
Joel Longtine
8c4157c3d8 Plan.Up -> Plan.Do
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:46:26 -07:00
Joel Longtine
d45c259501 Remove comment
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:45:58 -07:00
Joel Longtine
cc84325ba5 Remove unneeded property
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:45:58 -07:00
Joel Longtine
d09b62b1e2 Telemetry for commands
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-03-08 20:45:02 -07:00
Richard Jones
5417119198
fixes issue where specifying a non existent action doesnt error properly
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-08 19:17:49 -07:00
Sam Alba
03adcad911 cmd/up: deprecate dagger up with a warning
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
2022-03-08 18:03:04 -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
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
9328cc8c01
dagger do now uses --plan instead of --project
Signed-off-by: Richard Jones <richard@dagger.io>
2022-03-04 16:14:28 -07: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
cc9c9f6b95 Re-add old code (commented)
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:02 -07:00
Joel Longtine
f34f1d96c1 Add code (commented) back to doc gen. Probably needs to be reworked for Europa
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:02 -07:00
Joel Longtine
eeb20a3999 Temporary fix for markdownlint
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
43a46128e0 Remove pre-Europa tests
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
7e86b00962 Remove keychain
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
55bf5ff4dd Restore TrackProjectCommand + comment (so we can use it later for telemetry)
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
a839ab124a Comment out unused code
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
cdde074d09 Remove europa flag
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
e9b7519402 Remove environment flag
Signed-off-by: Joel Longtine <joel@dagger.io>
2022-02-23 12:20:01 -07:00
Joel Longtine
4e1b6173be Remove state (State + Project)
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