Commit Graph

1218 Commits

Author SHA1 Message Date
Solomon Hykes
cfde22b69d README: add invite link to Discord chatroom
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-07 16:13:20 -07:00
Sam Alba
464c4177d7 stdlib/kubernetes: split source with dagger.#Artifact and sourceInline (string) fixes #263
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-06 20:57:45 -07:00
Solomon Hykes
647e4c898b stdlib: improved Docker package
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 15:41:36 -07:00
Solomon Hykes
d522fc3396 dev.cue: polish
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 15:41:36 -07:00
Solomon Hykes
299a38c6b1 Simplify "dev dagger with dagger" example
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 13:41:21 -07:00
Solomon Hykes
6673ae69b3 stdlib: rename dagger.io/llb to dagger.io/dagger/op
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-06 10:28:40 -07:00
Andrea Luzzardi
7fb90790f3
Merge pull request #284 from fkautz/pr_out_ignore_idea 2021-04-06 00:08:38 -07:00
Andrea Luzzardi
8151f1806c
Merge pull request #272 from fkautz/pr_out_add_make_install 2021-04-06 00:08:03 -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
Frederick F. Kautz IV
dd36abcc29 ignore .idea
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-05 23:43:16 -07:00
Solomon Hykes
7b64c80021 Work in progress: develop dagger with dagger
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-05 17:19:03 -07:00
Andrea Luzzardi
74e4f4b814
Merge pull request #280 from dagger/stdlib-go-cache
stdlib: go: set GOMODCACHE directory
2021-04-05 17:09:45 -07:00
Andrea Luzzardi
7cf1163a2b
Merge pull request #279 from dagger/store-fix-duplicate-paths
store: fix duplicate paths
2021-04-05 17:09:35 -07:00
Andrea Luzzardi
5afc762096 stdlib: go: set GOMODCACHE directory
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-05 14:37:00 -07:00
Andrea Luzzardi
5a6a8c0ff6 store: fix duplicate paths
A deployment with multiple times the same path would appear repeated in
`LookupDeploymentByPath`.

This change indexes paths as a map rather than a list, thus avoiding the
issue altogether.

Fixes #276

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-05 14:28:59 -07:00
Andrea Luzzardi
1ae0ce65e9
Merge pull request #275 from dagger/dependabot/go_modules/github.com/stretchr/testify-1.7.0
build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.7.0
2021-04-05 10:17:07 -07:00
dependabot[bot]
d12b5d0d03
build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.7.0
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.1 to 1.7.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.1...v1.7.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-05 09:20:38 +00:00
Andrea Luzzardi
a5df3ab7cd
Merge pull request #274 from fkautz/pr_out_swapping_order_of_test_and_integration_tests_unit_tests_should_run_first 2021-04-04 22:37:41 -07:00
Frederick F. Kautz IV
73c07fd6e9 swapping order of test and integration tests, unit tests should run first
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-04 20:36:38 -07:00
Andrea Luzzardi
76f9c5824a
Merge pull request #273 from fkautz/pr_out_fix_build_break 2021-04-04 20:25:09 -07:00
Frederick F. Kautz IV
cb59e23cd4 fix build break
Signed-off-by: Frederick F. Kautz IV <fkautz@alumni.cmu.edu>
2021-04-04 20:00:22 -07:00
Andrea Luzzardi
0c79488a18
Merge pull request #268 from dagger/deployment-multi-path
store: support multiple deployments per path
2021-04-02 17:54:11 -07:00
Sam Alba
45d98d9bf4
Merge pull request #269 from dagger/cli-tests
Cli tests
2021-04-02 17:45:34 -07:00
Sam Alba
a79e13a35c test: fixed input_test.go
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 17:32:05 -07:00
Sam Alba
ce6ce871ab moved abs path to DirInput
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 17:26:19 -07:00
Solomon Hykes
1829f3324e Docs: buildkit install
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-02 17:18:47 -07:00
Sam Alba
21e0ac21de fixed tests
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 17:16:57 -07:00
Sam Alba
a799dd05d7 cli: moved abs path resolve to input.go
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 17:14:01 -07:00
Sam Alba
e6b0ca5109 cue fmt
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:49 -07:00
Sam Alba
3e605d1d72 cli: moved input dir to abs path - fixes #254
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:49 -07:00
Sam Alba
b12a3bf45f test: implemented cli tests for input git,dir
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:49 -07:00
Sam Alba
d3fc31ab57 fixed inputs when input target is overriden
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:49 -07:00
Sam Alba
a24dbef0b7 cli: up: restored result display
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:47 -07:00
Sam Alba
f5afb97d03 test: implemented cli test for plan *
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:22 -07:00
Sam Alba
8bb2cfbb21 test: added cli test for new --plan-git
Signed-off-by: Sam Alba <sam.alba@gmail.com>
2021-04-02 16:47:22 -07:00
Andrea Luzzardi
33a7770459 store: support multiple deployments per path
- Add support for multiple deployments per path in the Store
- Add a bunch of tests
- Change the Lookup deployment API
- Add disambiguation in the CLI commands

Fixes #231

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:40:20 -07:00
Sam Alba
540f373993
Merge pull request #265 from dagger/query-formats
dagger query [--format cue|json|text|yaml] (default is json)
2021-04-02 16:20:39 -07:00
Andrea Luzzardi
c16455249e cue files: #compute -> #up
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:08:15 -07:00
Andrea Luzzardi
8a4aa4d42b pipeline: #compute -> #up
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 16:08:15 -07:00
Solomon Hykes
e2e56a5143 dagger query [--format cue|json|text|yaml] (default is json)
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
2021-04-02 23:05:08 +00:00
Andrea Luzzardi
6486e159c1
Merge pull request #261 from dagger/client-api-cleanup
deployment API cleanup
2021-04-02 15:43:31 -07:00
Andrea Luzzardi
33d5add54b deployment API cleanup
The API was a bit confusing with code mixing the usage of Deployment and
DeploymentState.

This change marks a clear separation:

- Client is the only piece of code manipulating *Deployment
- CLI commands can manipulate DeploymentState objects and pass them to
  Client

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 15:30:38 -07:00
Andrea Luzzardi
59d934fbf0
Merge pull request #262 from dagger/fix-sops-dependency
go.mod: fix sops dependency
2021-04-02 15:22:52 -07:00
Andrea Luzzardi
6d01389e16 go.mod: fix sops dependency
Taken from https://github.com/dagger/dagger/pull/239

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 15:08:48 -07:00
Andrea Luzzardi
6820b99637
Merge pull request #260 from dagger/golangci-gh-action
ci: use golangci github action
2021-04-02 14:30:37 -07:00
Andrea Luzzardi
5b9ee0ed32 linter: replace deprecated scopelint with exportloopref
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -07:00
Andrea Luzzardi
2657a516b3 fix lint error
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-04-02 14:29:17 -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
Andrea Luzzardi
abc75b4520
Merge pull request #259 from verdverm/update-cue-v0.3.0
update CUE to v0.3.0
2021-04-02 14:24:57 -07:00
Sam Alba
11825932cc
Merge pull request #249 from dagger/integration-test-split
tests: split integration tests
2021-04-02 13:19:12 -07:00