Commit Graph

37 Commits

Author SHA1 Message Date
Andrea Luzzardi
eb78661620 move versioning into the version package
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-07-19 17:43:45 +02:00
Andrea Luzzardi
304959b3f5 automatically detect vendored buildkit version
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-07-19 16:26:18 +02:00
Andrea Luzzardi
cc004eb0ef ci: run universe tests as a separate CI job
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-07-01 18:55:03 +02:00
Andrea Luzzardi
3339a351ed tests: enable shellcheck for universe tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-09 15:51:31 -07:00
Solomon Hykes
fcbdfe178a Move universe integration tests to universe dir.
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-06-09 20:28:44 +00:00
Andrea Luzzardi
6d5142aa67 docs: use make docs to re-generate the docs
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:57:53 -07:00
Andrea Luzzardi
e1f28a73e5 docs: add make universe
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-08 18:29:02 -07:00
Andrea Luzzardi
e9b952a882 docs: rename tools/daggosaurus to website
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-04 13:49:20 -07:00
Andrea Luzzardi
973ada8ce4 docs: add make docs target
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-06-02 14:07:10 -07:00
Andrea Luzzardi
b1c50671b3 fix build for non-cgo
- use mitchellh/go-homedir rather than os/user to work on non cgo
  enabled builds (e.g. release binaries)
- updated Makefile to disable cgo on dev binaries

Fixes #519

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-28 11:48:50 -07:00
Sven Dowideit
bca143c1da I'm betting this is a minor spelling thing :)
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2021-05-28 08:52:30 +10:00
Andrea Luzzardi
af32e60b37 fix cue fmt
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-26 18:46:13 -07:00
Andrea Luzzardi
af776b8abe cleanup: move packages to top level, change vanity URL
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-05-25 16:54:00 -07:00
dubo-dubon-duponey
c5c15c2e1a
Proposal to fix #442
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-05-11 15:03:15 -07:00
Andrea Luzzardi
feda737d71 tests: convert stdlib to bats
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-15 16:09:19 -07:00
Andrea Luzzardi
e7458e9ca2 tests: use bats for integration tests
Converted the CLI tests to using bats to get started

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-14 15:18:34 -07:00
Frederick F. Kautz IV
e2066de088 Add 'make install'
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-05 23:50:23 -07:00
Andrea Luzzardi
7da33d00fc ci: use golangci github action
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -07:00
Sam Alba
ca613ea50b fix linting errors
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-03-24 09:36:19 -07:00
Tony Worm
3a9b33f028 move timeout to golangci-lint command
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-16 15:33:52 -04:00
Andrea Luzzardi
b04c046234 test: lint cue test files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-12 18:12:58 -08:00
Andrea Luzzardi
408053f092 ci: use cue version from go.mod
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-02 19:09:29 -08:00
Andrea Luzzardi
14f535655d ci: ensure cue version is consistent
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-02 18:59:07 -08:00
Andrea Luzzardi
14ff14ea4f automatically start/upgrade buildkitd
- Automatically start a buildkit daemon if no BUILDKIT_HOST is
  provided (and if not already started)
- Customization of BUILDKIT_HOST is still possible, just like before
- Automatically upgrade the managed daemon to the version used by dagger
  if necessary
- Add CI test to make sure the managed buildkit and the vendored
  buildkit versions match

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-02 18:37:30 -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
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
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
89c7136f75 tests: move tests top-level
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-03 15:02:43 -08:00
Solomon Hykes
6f4577d501 Fix and improve examples/simple
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-01-28 19:29:57 -08:00
Andrea Luzzardi
05b45aa636
Merge pull request #59 from blocklayerhq/cue-lint-all
lint all cue files
2021-01-20 21:46:31 -08:00
Andrea Luzzardi
6ab7f88007 lint all cue files
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:59:21 -08:00
Andrea Luzzardi
5fa527d721 ci: enable data race detector
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-20 18:44:29 -08:00
dubo-dubon-duponey
e301dfa7b1
Adding tests
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
2021-01-14 17:29:12 -08:00
Andrea Luzzardi
cf390e9243 ci: enable tests
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-01-13 18:21:56 -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
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