#Git imports in Dagger Module?

1 messages · Page 1 of 1 (latest)

sullen mirage
#

Giving zenith another go, really stoked for the shell debugging feature... and I'm seeing this error when calling dagger mod sync

Does zenith work with private golang libraries?

┃ go: downloading github.com/foo/dagger-libs v0.0.0-20231105174757-cba6565f8c4e                   
┃ go: github.com/foo/dagger-libs@v0.0.0-20231105174757-cba6565f8c4e: git init --bare in /go/pkg/mod/cache/vcs/05a875a41bc8e408ae66c357a8d99d468260568efb2cc94be4be5b3fdde36e60: exec: "git": exec
┃ utable file not found in $PATH                                            done!  
#

Here's my main.go

package main

import (
    "github.com/foo/dagger-libs/pkg/build"
)

type Ci struct{}

func (m *Ci) BuildAndTest(excludedDirs []string) error {
    return build.BuildAndTest(excludedDirs)
}

ember steeple
#

We need to apk add the git package to the runtime container.

brave pollen
#

good catch @ember steeple. Do we have an issue for this already?