daggerverse
daggerverse copied to clipboard
Dagger module cannot install CLI
I want to use the Dagger Module to install CLI in order to create a publish module.
However I have an error when I try to install the CLI.
Repro
dagger mod use github.com/shykes/daggerverse/dagger
_, err := dag.Dagger().Engine().Release("0.9.3").Source().Cli().Sync(ctx)
if err != nil {
return err
}
✘ exec /runtime ERROR [2.47s]
┃ json: error calling MarshalJSON for type *main.File: input:1: container.from.withExec.withEnvVariable.withExec.withWorkdir.withDirectory.withMountedCache.withExec.withMountedDirect
┃ y.withMountedCache.withExec.file process "go build -o ./bin/dagger -ldflags -s -w -X github.com/dagger/dagger/engine.EngineImageRepo=registry.dagger.io/engine ./cmd/dagger" did not
┃ omplete successfully: exit code: 1
✘ file(path: "./bin/dagger") ERROR [1.07s]
✘ exec go build -o ./bin/dagger -ldflags -s -w -X github.com/dagger/dagger/engine.EngineImageRepo=registry.dagger.io/engine ./cmd/dagger ERROR [0.27s]
┃ /go/pkg/mod/github.com/dagger/[email protected]/introspection.go:6:2: package slices is not in GOROOT (/usr/local/go/src/slices)
• Engine: a88d9134bd86 (version devel ())
I'll try to find a fix, it might be fixed by that, I need to check.