#faster ⚡

1 messages · Page 1 of 1 (latest)

fair dawn
#

Ran hyperfine to test dagger based go build vs go build locally. 10 iterations, 1 prerun

  • dagger: mean 7.9 seconds
  • go: 2.0

I've added the prior recommended go mod + build cache and that's the final result. I'm suspecting copying the assets into the container from my repo is the problem. Still before I flip all build actions to dagger I need to tackle this more

sturdy saffron
#

Have you been able to confirm that it's using the mod + build cache? I've had trouble putting them at the right path before.

#

Could also help to use include/exclude paths to limit what assets get copied

fair dawn
#

did dockerignore support get added?

frozen talon
fair dawn
#

Here's an example of the code I used. Maybe I got it wrong.

To get the latest "tip" I should be updating my Go module dagger.io dependency, not dagger the binary correct?

sturdy saffron
#

hm you'd need the new dagger binary, since it's an improvement to code run by dagger session

frozen talon
fair dawn
#

Include can support wildcard for all go files? I don't have nested under a simple root directory so it's harder to add a big list and maintain this