#Are you still getting this error? Could
1 messages · Page 1 of 1 (latest)
Platform: Windows 11
- Clone the dagger repo:
cd dagger/devdagger developdagger call -m dev --source=.:default test all
I see this error:
PS H:\dagger\dev> dagger call -m dev --source=.:default test all
✘ initialize 6.4s
! input: module.withSource.initialize resolve: failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# github.com/dagger/dagger/dev/internal/build
internal/build/builder.go:309:17: not enough arguments in call to dag.Go
have (*dagger.Directory)
want (*dagger.Directory, string, string)
✘ Module.initialize: Module! 4.5s
! failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
✘ exec go build -o /runtime . 4.4s
! process "go build -o /runtime ." did not complete successfully: exit code: 1
┃ # github.com/dagger/dagger/dev/internal/build
┃ internal/build/builder.go:309:17: not enough arguments in call to dag.Go
┃ have (*dagger.Directory)
┃ want (*dagger.Directory, string, string)
Error: input: module.withSource.initialize resolve: failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# github.com/dagger/dagger/dev/internal/build
internal/build/builder.go:309:17: not enough arguments in call to dag.Go
have (*dagger.Directory)
want (*dagger.Directory, string, string)
Try:
- Clone the dagger repo
dagger call -m dev --source=.:default test all
still getting this error:
PS H:\dagger\dev> dagger call -m dev --source=.:default test all
✘ initialize 1.7s
! input: module.withSource.initialize resolve: failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# github.com/dagger/dagger/dev/internal/build
internal/build/builder.go:309:17: not enough arguments in call to dag.Go
have (*dagger.Directory)
want (*dagger.Directory, string, string)
✘ Module.initialize: Module! 0.4s
! failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
✘ exec go build -o /runtime . 0.4s
! process "go build -o /runtime ." did not complete successfully: exit code: 1
┃ # github.com/dagger/dagger/dev/internal/build
┃ internal/build/builder.go:309:17: not enough arguments in call to dag.Go
┃ have (*dagger.Directory)
┃ want (*dagger.Directory, string, string)
Error: input: module.withSource.initialize resolve: failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# github.com/dagger/dagger/dev/internal/build
internal/build/builder.go:309:17: not enough arguments in call to dag.Go
have (*dagger.Directory)
want (*dagger.Directory, string, string)
you have to run it from the root of the git repo
still this erro:
PS H:\dagger> dagger call -m dev --source=.:default test all
✘ initialize 2.9s
! input: module.withSource.initialize resolve: failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# github.com/dagger/dagger/dev/internal/build
internal/build/builder.go:309:17: not enough arguments in call to dag.Go
have (*dagger.Directory)
want (*dagger.Directory, string, string)
✘ Module.initialize: Module! 1.0s
! failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
✘ exec go build -o /runtime . 0.9s
! process "go build -o /runtime ." did not complete successfully: exit code: 1
┃ # github.com/dagger/dagger/dev/internal/build
┃ internal/build/builder.go:309:17: not enough arguments in call to dag.Go
┃ have (*dagger.Directory)
┃ want (*dagger.Directory, string, string)
Error: input: module.withSource.initialize resolve: failed to initialize module: failed to call module "dagger-dev" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# github.com/dagger/dagger/dev/internal/build
internal/build/builder.go:309:17: not enough arguments in call to dag.Go
have (*dagger.Directory)
want (*dagger.Directory, string, string)
Does this ring a bell @ivory totem @robust trellis @soft rapids @neat umbra ?
I'm not using test all because it's too flacky so nope, but when I run the command from the root of the repo, it executes the tests
@normal glade can you give us the outputs of:
git log -1
git status
Yeah, I don't get that error. The error seems to suggest maybe a different version of the go module is being used on account of the difference in the signature of dag.Go. So that make me wonder which CLI version is being used, and which commit is cloned.
No, I haven't seen this error before.
What OS are you using @normal glade ? PS H:\dagger makes me curious.
PS H:\dagger> git log -1
commit f9fd2993f5a96b3bb95f7559e810aafbd50cdd99 (HEAD -> main, origin/main, origin/HEAD)
Author: Jeremy Adams <jeremy@dagger.io>
Date: Wed Jul 3 03:09:09 2024 -0700
fix: correct exposed port from 8080 to 80 (#7815)
Signed-off-by: Jeremy Adams <jeremy@dagger.io>
PS H:\dagger> git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: dev/dagger.json
modified: dev/go.mod
modified: dev/go.sum
modified: go.mod
modified: install.ps1
no changes added to commit (use "git add" and/or "git commit -a")
Windows 11
You're behind a few commits. Can you undo the modifications in dev and go.mod and git pull to get latest commit?
If you want to run it independently of your local checkout, you can also reference the remote repo directly:
dagger call -m github.com/dagger/dagger/dev --source=https://github.com/dagger/dagger test all
Or, to run the remote dev module against a local source checkout:
dagger call -m github.com/dagger/dagger/dev --source=.:default test all
Its taking more time to execute
tried this:
Is it normal?
Yes. It is expected to take 40-50mins, but can take longer, all depending on the speed of your local disk. It is very disk intensive since it can boot up to 16 Dagger Engines inside Dagger in parallel. We normally run test custom and pick a subset of tests when running locally. Our CI runners which are IO optimised - c6id - take ~12mins to run this.