Skip to content

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Jan 19, 2022

TODO

  • generate the pkgbuild file based on config/artifacts
  • clone, update and commit to a git repo using a configurable ssh key
  • docs
  • make package templateable
  • publish goreleaser pkgbuild itself (likely on next release)

Questions

  • it seems that AUR defaults to master, although I couldn't find any references for that... is that assumption correct?
  • the auth method is a bit cumbersome, is there a better way?
  • are the docs clear enough?
  • not sure about the aurs field in the config file, but seemed the most appropriate
  • should we also upload PKGBUILDs et al to the release?

This feature is being sponsored by Charm

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 caarlos0 added the enhancement New feature or request label Jan 19, 2022
@caarlos0 caarlos0 self-assigned this Jan 19, 2022
@pull-request-size pull-request-size bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 19, 2022
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 19, 2022 15:08 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 19, 2022 15:14 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 19, 2022 17:48 Inactive
@codecov
Copy link

codecov bot commented Jan 19, 2022

Codecov Report

Merging #2838 (01eaf47) into main (2c6b51c) will decrease coverage by 0.13%.
The diff coverage is 81.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2838      +/-   ##
==========================================
- Coverage   84.55%   84.42%   -0.14%     
==========================================
  Files         110      111       +1     
  Lines        8400     8783     +383     
==========================================
+ Hits         7103     7415     +312     
- Misses       1051     1101      +50     
- Partials      246      267      +21     
Impacted Files Coverage Δ
internal/pipe/publish/publish.go 80.00% <ø> (ø)
pkg/config/config.go 87.15% <ø> (ø)
internal/pipe/aur/aur.go 80.65% <80.65%> (ø)
internal/artifact/artifact.go 97.81% <100.00%> (+0.09%) ⬆️
internal/git/git.go 100.00% <100.00%> (ø)
internal/golden/golden.go 82.92% <100.00%> (+1.34%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c6b51c...01eaf47. Read the comment docs.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 19, 2022 18:12 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 19, 2022 19:46 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 00:55 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 00:56 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 01:24 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 01:25 Inactive
@caarlos0 caarlos0 marked this pull request as ready for review January 20, 2022 01:30
@caarlos0 caarlos0 changed the title feat: aur PKGBUILD integration feat: arch user repository integration Jan 20, 2022
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 01:49 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 01:53 Inactive
@caarlos0 caarlos0 requested a review from a team January 20, 2022 02:11
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 02:45 Inactive
Copy link
Contributor

@dirien dirien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, left a comment :)

@Foxboron
Copy link

Yo, I'm one of the AUR moderators and general Go packager in Arch Linux. I looked over the code and it seems fine. I tried answering the questions at the top of the PR as well. Feel free to ask if you wonder about anything else.

it seems that AUR defaults to master, although I couldn't find any references for that... is that assumption correct?

Yes, and this won't change as the underlying AUR repository is using git namespaces where the branches are hardcoded to master. The docs should probably be updated to reference that.

the auth method is a bit cumbersome, is there a better way?

There isn't. SSH keys is the only way and I'm not aware of any changes being introduced in the Python rewrite.

are the docs clear enough?

I think there needs to be a link to the AUR submission guidelines. Rest of the links are a good guideline.

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 12:58 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 13:02 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 13:12 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 13:31 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 13:34 Inactive
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 13:36 Inactive
@caarlos0
Copy link
Member Author

Hey @Foxboron, many thanks for the review! I think I addressed all your points, feel free to take another look if you can 🙏

I also made a few more improvements:

  • enforce -bin suffix on pkgname
  • maintainers can be a list
  • more tests 🙏

@Foxboron
Copy link

Foxboron commented Jan 20, 2022

It looks fine on my end. I like the fact you enforce -bin on pkgname. The only thing that might be missing is validpgpkeys, but I'm not sure how often people sign their release artfifacts with goreleaser. Rest looks good to me :)

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@vercel vercel bot temporarily deployed to Preview January 20, 2022 13:52 Inactive
@caarlos0 caarlos0 merged commit b02bec9 into main Jan 20, 2022
@caarlos0 caarlos0 deleted the aur branch January 20, 2022 17:59
@github-actions github-actions bot added this to the v1.4.0 milestone Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants