Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for APKBUILD (Alpine Linux) #4708

Open
2 of 3 tasks
bartekpacia opened this issue Mar 17, 2024 · 4 comments
Open
2 of 3 tasks

Add support for APKBUILD (Alpine Linux) #4708

bartekpacia opened this issue Mar 17, 2024 · 4 comments
Assignees
Labels
enhancement New feature or request good-first-issue

Comments

@bartekpacia
Copy link
Contributor

Is your feature request related to a problem? Please describe.

I'd like GoReleaser to have explicit support for apk's APKBUILD format, used by Alpine Linux.

APKBUILD is very similar to Arch's PKGBUILD. The only difference (that I'm aware of) is that APKBUILD scripts must be pure sh, while PKGBUILD are bash.

Describe the solution you'd like

It would be basically the same as the current aurs feature, but with a different name.

Describe alternatives you've considered

Use aurs to push to alpine linux repos and somehow automate renaming PKGBUILD to APKBUILD?

Search

  • I did search for other open and closed issues before opening this

Supporter

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

@bartekpacia bartekpacia added enhancement New feature or request triage Issue pending triage by one of the maintainers labels Mar 17, 2024
@caarlos0
Copy link
Member

nice, yeah, we can probably do it.

do you have any references you would like us to look at?

@caarlos0 caarlos0 added good-first-issue and removed triage Issue pending triage by one of the maintainers labels Mar 19, 2024
@bartekpacia
Copy link
Contributor Author

Sure!

Thank you for being a fantastic open-source maintainer.

@bartekpacia
Copy link
Contributor Author

Hmm, I see GoReleaser already has support for nFPM, and it says "GoReleaser can be wired to nfpm to generate and publish .deb, .rpm, .apk, and ArchLinux packages." Therefore I think there's at least some overlap between the feature I propose in this issue and the already-supported nFPM.

But then, GoReleaser has explicit support for AURs... hmm.


nFPM is in the "Packaging and Archiving" docs section, and AUR is in the "Publish" docs section, so I understand that these 2 are different things, on different stages of build/deploy process.

@caarlos0
Copy link
Member

caarlos0 commented Apr 1, 2024

yeah, nfpm generates the packages themselves, and goreleaser can use nfpm to do the same.

goreleaser also supports creating and pushing AUR PKGBUILD & co files.

I haven't looked into the docs of APKBUILD yet to decide if it makes sense to add it as well or not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good-first-issue
Projects
None yet
Development

No branches or pull requests

2 participants