#Are you still getting this error? Could

1 messages · Page 1 of 1 (latest)

normal glade
#

Platform: Windows 11

  1. Clone the dagger repo:
  2. cd dagger/dev
  3. dagger develop
  4. dagger 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)
kind sparrow
normal glade
#

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)
kind sparrow
#

you have to run it from the root of the git repo

normal glade
# normal glade still getting this error: ```powershell PS H:\dagger\dev> dagger call -m dev --s...

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)
kind sparrow
#

Does this ring a bell @ivory totem @robust trellis @soft rapids @neat umbra ?

robust trellis
#

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

kind sparrow
#

@normal glade can you give us the outputs of:

git log -1
git status
ivory totem
#

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.

soft rapids
normal glade
# kind sparrow <@1081584998127255653> can you give us the outputs of: ```console git log -1 ``...
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")
ivory totem
#

You're behind a few commits. Can you undo the modifications in dev and go.mod and git pull to get latest commit?

kind sparrow
#

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
normal glade
#

Its taking more time to execute

soft rapids
#

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.