diff --git a/dapr/.gitattributes b/dapr/.gitattributes index bd21599..b94d9fd 100644 --- a/dapr/.gitattributes +++ b/dapr/.gitattributes @@ -1,2 +1,4 @@ /dagger.gen.go linguist-generated /querybuilder/** linguist-generated +/internal/dagger/** linguist-generated +/internal/querybuilder/** linguist-generated diff --git a/dapr/dagger.json b/dapr/dagger.json index 591fb01..6e354d2 100644 --- a/dapr/dagger.json +++ b/dapr/dagger.json @@ -8,5 +8,5 @@ } ], "source": ".", - "engineVersion": "v0.9.10" + "engineVersion": "v0.10.0" } diff --git a/dapr/main.go b/dapr/main.go index dbd95d7..691b741 100644 --- a/dapr/main.go +++ b/dapr/main.go @@ -6,7 +6,7 @@ import ( ) type Dapr struct { - image string + Image string } func New( @@ -15,7 +15,7 @@ func New( // +default="docker.io/daprio/daprd:1.13.0-rc.7" image string, ) *Dapr { - return &Dapr{} + return &Dapr{Image: image} } func (m *Dapr) Dapr( @@ -43,7 +43,7 @@ func (m *Dapr) Dapr( args = append(args, "-app-channel-address", *appChannelAddress) } - dapr := dag.Container().From(m.image). + dapr := dag.Container().From(m.Image). With(func(c *Container) *Container { if componentsPath != nil { c = c.WithDirectory("/components", componentsPath)