#anyone running Goreleaser-cross with dagger and want to share?

1 messages · Page 1 of 1 (latest)

tame hatch
#

Have to compile with c enabled for a go binary that needs oracle instant client.

If anyone already has a coded Goreleaser for cross compilation with caching, docker login, etc all setup would love to see it. Won’t take me long to convert to dagger so don’t no need to write it if not. Just looking to jump start in case someone else has been doing a similar bit of work. 👍

ruby temple
#

cc @ancient moss who was telling me about goreleaser + dagger just today 😁

tame hatch
#

Nice. I’m specifically looking for the cross build one though. Besides publishing to my magetool repo is there any other work in progress for a central registry for different packaged dagger building blocks/code or is that a ways off?

ancient moss
#

We are using GoRelease Pro to build for Linux, Windows, Darwin with amd64, arm64 & arm: https://github.com/dagger/dagger/blob/0ef2bb305d8e9c177698b1e61aab58b05eaed078/internal/mage/cli.go

If you are referring to Extensions, this is the latest WIP: https://github.com/dagger/dagger/pull/5060

GitHub

A programmable CI/CD engine that runs your pipelines in containers - dagger/cli.go at 0ef2bb305d8e9c177698b1e61aab58b05eaed078 · dagger/dagger

GitHub

In a mergeable state, with lots of follow-ups to come.
Right now I've tested w/ Go and Python. NodeJS is a TODO.
Features/Demos
If you want to try this yourself, after pulling down this PR you ...

ruby temple
tame hatch
#

Oh nice. I actually have a draft too, just stuck on a few pieces. I'll checkout ya'lls code.

#

Here's a gist of the work in progress. If you see anything obvious on that last export line let me know. I'm messing something up on the path. Will check ya'lls code.

Not happy about running goreleaser this way but this project has CGO_ENABLED=1 for oracle stuff so I'm trying to make sure it "just works" even if it's painfully slow to download the goreleaser-cross image

#

oh good points too to make sure I pass in those other environment variables 😆

Side note... thought about seeing if I could train openai on ya'lls sdk someday, maybe try it with cody and see if it would jump start stuff 🤖

tame hatch
#

any tip on the last error: /go/src/.artifacts/goreleaser: no such file or directory. I'm backtracking through the goreleaser image and trying to verify the paths mounted are right. I'll recheck the examples you provided too

tame hatch
#

i think i'm close. I had mismatch in /go/src and /src so working through that now due to freaking azure repos and how they mess up remote paths.