Andrea Luzzardi
74d3bb81cb
examples: dogfood!
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-19 01:25:53 -08:00
Andrea Luzzardi
60ce946950
stdlib: go support
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-19 01:25:41 -08:00
Andrea Luzzardi
a3e78cc558
enable dependabot for Dockerfile
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-18 12:14:01 -08:00
Andrea Luzzardi
fda6da8433
Merge pull request #127 from dagger/local-include-fix
...
local: fix when include is not specified
2021-02-17 18:51:24 -08:00
Andrea Luzzardi
3ddd967291
local: fix when include is not specified
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 17:19:49 -08:00
Andrea Luzzardi
845fe7eca4
fix error checking
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 15:27:40 -08:00
Andrea Luzzardi
05d45dff29
go mod tidy
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 15:27:19 -08:00
Andrea Luzzardi
cf09ce2ddc
Merge pull request #126 from dagger/update-url
...
dagger.cloud -> dagger.io
2021-02-17 13:28:48 -08:00
Andrea Luzzardi
3f54b5acdb
Merge pull request #124 from dagger/dependabot/go_modules/cuelang.org/go-0.3.0-beta.5
...
Bump cuelang.org/go from 0.3.0-beta.4 to 0.3.0-beta.5
2021-02-17 13:28:38 -08:00
Andrea Luzzardi
63daffb200
Merge pull request #125 from dagger/dependabot/go_modules/github.com/spf13/cobra-1.1.3
...
Bump github.com/spf13/cobra from 1.0.0 to 1.1.3
2021-02-17 13:28:29 -08:00
Andrea Luzzardi
b1626033de
Merge pull request #123 from dagger/dependabot/go_modules/github.com/spf13/viper-1.7.1
...
Bump github.com/spf13/viper from 1.7.0 to 1.7.1
2021-02-17 13:28:18 -08:00
Andrea Luzzardi
3ab0563e80
cue module is now dagger.io
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 13:21:41 -08:00
Andrea Luzzardi
fef148f6c0
rename go package dagger.io/go
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 13:13:39 -08:00
Andrea Luzzardi
6f4acff14d
add a go file to the root folder
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 13:13:17 -08:00
dependabot[bot]
8480737180
Bump github.com/spf13/cobra from 1.0.0 to 1.1.3
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.0.0 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.0.0...v1.1.3 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 20:26:57 +00:00
dependabot[bot]
7550cda450
Bump cuelang.org/go from 0.3.0-beta.4 to 0.3.0-beta.5
...
Bumps cuelang.org/go from 0.3.0-beta.4 to 0.3.0-beta.5.
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 20:26:52 +00:00
dependabot[bot]
29991348b7
Bump github.com/spf13/viper from 1.7.0 to 1.7.1
...
Bumps [github.com/spf13/viper](https://github.com/spf13/viper ) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/spf13/viper/releases )
- [Commits](https://github.com/spf13/viper/compare/v1.7.0...v1.7.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 20:26:50 +00:00
Andrea Luzzardi
9dbec2030c
dependabot support
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 12:18:26 -08:00
Andrea Luzzardi
cabf3317d9
Merge pull request #122 from dagger/go-1.13-errors
...
cleanup: wrap errors using go 1.13 built-ins
2021-02-17 10:35:57 -08:00
Andrea Luzzardi
9e86b011d5
cleanup: wrap errors using go 1.13 built-ins
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 10:30:51 -08:00
Andrea Luzzardi
81389b3cb9
Merge pull request #121 from dagger/compiler-cleanup
...
compiler cleanup
2021-02-17 10:30:16 -08:00
Andrea Luzzardi
74e084944e
compiler cleanup
...
Now using the same pattern as Go's http package.
- the `compiler.Compiler` struct can be used directly (and tests to do
to avoid messing with the global version)
- `compiler.DefaultCompiler` contains a public default Compiler instance
- `compiler` exposes proxy functions (e.g. Compile) back to the
DefaultCompiler
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 10:26:38 -08:00
Andrea Luzzardi
eb0c0a9375
Merge pull request #120 from dagger/builtin-stdlib
...
Embedded stdlib
2021-02-17 10:16:17 -08:00
Andrea Luzzardi
5ba6dd1617
embedded stdlib
...
This PR embeds the stdlib into the dagger binary itself for convenience.
Long term we will want to source the stdlib directly from git.
- Updated go to 1.16 to use the new built-in embedding functionality
- The `stdlib` go package now contains an embed of the stdlib
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-17 10:08:56 -08:00
Andrea Luzzardi
31f1cd9f1d
Merge pull request #119 from dagger/small-cleanup
...
Small cleanup
2021-02-16 14:41:18 -08:00
Andrea Luzzardi
b6f5e8a098
Merge pull request #117 from dagger/slim3
...
dagger compute: automatically fetch stdlib
2021-02-16 14:41:10 -08:00
Solomon Hykes
be8f600c59
dagger/cc: remove locking methods from public API
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-13 17:40:21 +00:00
Solomon Hykes
2019d29c08
Remove broken or redundant examples
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-13 17:40:21 +00:00
Andrea Luzzardi
df35cdfc4c
Merge pull request #116 from blocklayerhq/slim2
...
Remove runtime spec validation
2021-02-12 16:12:59 -08:00
Solomon Hykes
bff4186bf4
dagger compute auto-fetches standard library from external repo
...
- Standard library is hosted at github.com/blocklayerhq/dagger-stdlib
- When dagger repo is made public, stdlib can be hosted from same repo
- Vendored cue.mod is merged with stdlib at file granularity
- When developing dagger, set DAGGER_DEV_STDLIB to a local stdlib
directory
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:31:13 +00:00
Solomon Hykes
77bf0be306
Remove broken examples
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:31:13 +00:00
Solomon Hykes
e8527ddcf5
No more runtime spec validation
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 23:30:46 +00:00
Andrea Luzzardi
ec56160307
Merge pull request #115 from blocklayerhq/slim
...
Simplify runtime code by removing layers of abstraction
2021-02-12 15:27:18 -08:00
Solomon Hykes
acba8b3988
Simplify runtime code by removing layers of abstraction
...
- Remove intermediary types `Component`, `Script`, `Op`, `mount`: just use
`cc.Value` directly
- Remove `Executable` interface.
- Execute llb code with a simple concrete type `Pipeline`
- Analyze llb code with a simple utility `Analyze`
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-12 22:20:20 +00:00
Andrea Luzzardi
92b61f7edb
Merge pull request #113 from blocklayerhq/re-enable-specgen
...
re-enable spec generation
2021-02-10 18:45:17 -08:00
Andrea Luzzardi
3718749db5
re-enable spec generation
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-10 18:43:07 -08:00
Andrea Luzzardi
88b98cac6c
Merge pull request #111 from blocklayerhq/cue-v0.3.0-beta.4
...
bump cue to v0.3.0-beta.4
2021-02-09 12:51:54 -08:00
Andrea Luzzardi
7cbce4eec1
Merge pull request #108 from verdverm/mount-path
...
support path option in script/component mounts
2021-02-09 12:51:14 -08:00
Tony Worm
8de7a47b8d
support path option in script/component mounts
...
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-02-09 15:00:23 -05:00
Andrea Luzzardi
b324fa3248
bump cue to v0.3.0-beta.4
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-09 11:42:41 -08:00
Solomon Hykes
781b89e41c
Simplify op.go by removing unnecessary cue validations
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-08 15:10:32 -08:00
Solomon Hykes
612a25fb9f
Simplify code by moving polyfill cue compiler to sub-package cc
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-08 15:10:32 -08:00
Solomon Hykes
622de21883
{do:"subdir"} to select a subdirectory in a script
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-05 15:27:37 -08:00
Solomon Hykes
0202f4447b
Don't instantiate a global shared Env in cmd/compute.go
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-05 15:27:19 -08:00
Solomon Hykes
0fe2ef4fe4
Simplify Env API: Compute/Components instead of Compute/Walk
...
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-02-05 15:27:19 -08:00
Andrea Luzzardi
5b7bc78cf1
Merge pull request #104 from blocklayerhq/mnt-cache
...
mount cache support
2021-02-05 15:18:32 -08:00
Andrea Luzzardi
75c3b09415
Merge pull request #103 from blocklayerhq/trace-llb
...
solver: trace LLB
2021-02-05 15:18:11 -08:00
Andrea Luzzardi
b0294e79d1
solver: trace LLB
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-05 15:14:45 -08:00
Andrea Luzzardi
f336164699
mount cache support
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-05 15:08:44 -08:00
Andrea Luzzardi
89c7136f75
tests: move tests top-level
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-03 15:02:43 -08:00