Hey ππ». I'm facing an issue with my mono repo that as it sounds, use go.work workspaces. Here's my actual go.work file. There are two go modules there that aren't Dagger modules, but instead simple/vanilla Go modules with reusable functions that I want to reuse in the other modules that are actual Dagger modules/functions.
go 1.21.7
toolchain go1.21.7
use (
.
./gitlab-cicd-vars/dagger
./goreleaser/dagger
./terraform/dagger
./terratest/dagger
./tflint/dagger
./daggerx
./utils
)
These two are simple GO modules, and the daggerx one somehow isn't found when I'm tryng to call a function of one of the modules that uses it, or just by doing dagger develop on that module.
./daggerx #(it has a package pkg/args that I'm trying to reuse)
./utils
Here's the error:
β generating go module: goreleaser
β writing dagger.gen.go
β writing go.mod
β writing go.sum
β writing internal/dagger/dagger.gen.go
β running post-command: go mod tidy
β go: finding module for package github.com/excoriate/daggerverse/daggerx/pkg/args
β go: found github.com/excoriate/daggerverse/daggerx/pkg/args in github.com/excoriate/daggerverse/daggerx v0.0.0-20240425074853-01c88d723425
β go: finding module for package github.com/Excoriate/daggerverse/utils/pkg/slices
β go: GoReleaser imports
β github.com/excoriate/daggerverse/daggerx/pkg/args tested by
β github.com/excoriate/daggerverse/daggerx/pkg/args.test imports
β github.com/Excoriate/daggerverse/utils/pkg/slices: module github.com/Excoriate/daggerverse@latest found (v1.7.0), but does not contain pa
β thub.com/Excoriate/daggerverse/utils/pkg/slices
In the target module, I'm importing this package daggerArgs "github.com/excoriate/daggerverse/daggerx/pkg/args" . From the IDE perspective, no issues. :/