Skip to content

Instantly share code, notes, and snippets.

@salaboy
Created February 29, 2024 10:36
Show Gist options
  • Save salaboy/4100c60e291f24cc2d73319cf1417e97 to your computer and use it in GitHub Desktop.
Save salaboy/4100c60e291f24cc2d73319cf1417e97 to your computer and use it in GitHub Desktop.
salaboy@salaboyMBP example-voting-app % dagger call vote-app --dir . up
✘ initialize 2.0s
✔ ModuleSource.asModule: Module! 1.4s
✘ Module.initialize: Module! 0.2s
✘ exec go build -o /runtime . 0.2s
┃ # main
┃ ./main.go:19:35: cannot use dagger.VoteRunOpts{…} (value of type "main/dagger".VoteRunOpts) as "main/internal/dagger".VoteRunOpts value in argument to dag.Vote().Run
┃ ./main.go:20:19: cannot use redisSvc (variable of type *"main/internal/dagger".Service) as *"main/dagger".Service value in struct literal
┃ ./main.go:21:19: cannot use dir.Directory("java/vote/components") (value of type *"main/internal/dagger".Directory) as *"main/dagger".Directory value in struct literal
┃ ./main.go:25:35: cannot use dagger.ResultRunOpts{…} (value of type "main/dagger".ResultRunOpts) as "main/internal/dagger".ResultRunOpts value in argument to dag.Result().Run
┃ ./main.go:26:20: cannot use dag.Directory().WithFile("results-statestore.yaml", dir.Directory("k8s-dapr").File("results-statestore.yaml")) (value of type *"main/internal/dagger".Directory) as *"main/dagger".Directory valu
┃ truct literal
┃ ./main.go:27:20: cannot use postgresSvc (variable of type *"main/internal/dagger".Service) as *"main/dagger".Service value in struct literal
┃ ./main.go:34:4: cannot use dagger.WorkerRunOpts{…} (value of type "main/dagger".WorkerRunOpts) as "main/internal/dagger".WorkerRunOpts value in argument to dag.Worker().Run
┃ ./main.go:35:21: cannot use dir.Directory("k8s-dapr") (value of type *"main/internal/dagger".Directory) as *"main/dagger".Directory value in struct literal
Error: input: module.withSource.initialize failed to initialize module: failed to call module "voteapp" to get functions: call constructor: process "go build -o /runtime ." did not complete successfully: exit code: 1
Stderr:
# main
./main.go:19:35: cannot use dagger.VoteRunOpts{…} (value of type "main/dagger".VoteRunOpts) as "main/internal/dagger".VoteRunOpts value in argument to dag.Vote().Run
./main.go:20:19: cannot use redisSvc (variable of type *"main/internal/dagger".Service) as *"main/dagger".Service value in struct literal
./main.go:21:19: cannot use dir.Directory("java/vote/components") (value of type *"main/internal/dagger".Directory) as *"main/dagger".Directory value in struct literal
./main.go:25:35: cannot use dagger.ResultRunOpts{…} (value of type "main/dagger".ResultRunOpts) as "main/internal/dagger".ResultRunOpts value in argument to dag.Result().Run
./main.go:26:20: cannot use dag.Directory().WithFile("results-statestore.yaml", dir.Directory("k8s-dapr").File("results-statestore.yaml")) (value of type *"main/internal/dagger".Directory) as *"main/dagger".Directory value in struct literal
./main.go:27:20: cannot use postgresSvc (variable of type *"main/internal/dagger".Service) as *"main/dagger".Service value in struct literal
./main.go:34:4: cannot use dagger.WorkerRunOpts{…} (value of type "main/dagger".WorkerRunOpts) as "main/internal/dagger".WorkerRunOpts value in argument to dag.Worker().Run
./main.go:35:21: cannot use dir.Directory("k8s-dapr") (value of type *"main/internal/dagger".Directory) as *"main/dagger".Directory value in struct literal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment