GoReleaser can now create and publish Arch Linux PKGBUILD files to Arch User Repositories!

neofetch in an Arch Linux container

neofetch in an Arch Linux container

This amazing new feature was sponsored by Charm.

How does it work?

The AUR is basically a group of Git repositories that, if you push the right set of files, are installable on an Arch Linux box using a tool like yay.

To push there, you’ll need to create an account on  the AUR website and inform them of the public key you’ll be using to push.

Then you just need to  add some configuration to your goreleaser.yaml  file and…you’re done! GoReleaser will build everything for you, clone the repository, update the files, commit everything, and push it back.

And that’s it! You can now instruct your users to install your package with a command like yay -S goreleaser-bin or yay -S goreleaser-pro-bin. How awesome is that!?

Other notable features

  • GoReleaser Pro now allows you to use -snapshot without a -key. This should help users without a license key test things locally, or on a CI job with fewer privileges (e.g. GitHub Actions on a pull request).
  • And finally, both the OSS and Pro distributions now have man pages: run man goreleaser or man goreleaser-pro to check them out.
  • On GoReleaser Pro, custom variables should now be  prefixed with .Var.

Other news

  • We still don’t have a new date for our first community call. Personal life a little too busy lately, will try my best to schedule it ASAP. Link.
  • GoReleaser now has ~9.5k stars and 262 contributors! Thanks, everyone!
  • Our Discord server is getting new members almost daily.  Join and chat with us!

Full disclosure: Charm is my current employer.

Shameless plug: Definitely check us out, we are  building a bunch of cool OSS stuff!


This is a cross-post from GoReleaser’s blog!