-
Notifications
You must be signed in to change notification settings - Fork 61
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
Support Arch User Repositories #530
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mccurdyc some comments that hopefully you can help with. Please feel free to take over this PR as I think you are better suited to resolve them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great start!!! Gives me a ton of momentum to run with!
Referenced the gorelease AUR docs while reviewing this - https://goreleaser.com/customization/aur/
And https://wiki.archlinux.org/title/PKGBUILD
Also quickly browsed - https://github.com/goreleaser/goreleaser/blob/a1447a363579365f489458ad7636fd088a5b66ab/internal/pipe/aur/aur.go
I talked to @Integralist and I'm going to own this branch/PR from here and test it out on my Arch machine.
.goreleaser.yml
Outdated
# completions | ||
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/" | ||
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/" | ||
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/" | ||
install -Dm644 "./completions/mybin.bash" "${pkgdir}/usr/share/bash-completion/completions/mybin" | ||
install -Dm644 "./completions/mybin.zsh" "${pkgdir}/usr/share/zsh/site-functions/_mybin" | ||
install -Dm644 "./completions/mybin.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/mybin.fish" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have completions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do! Here's how Homebrew sets up the completions (in case it's helpful):
https://github.com/fastly/homebrew-tap/blob/master/Formula/fastly.rb
I also added a test to the CLI for validating the completion output (again, in case it's of interest/help):
https://github.com/fastly/cli/blob/main/pkg/app/run_test.go#L62-L167
Reading the "Rules of Submission" section of https://wiki.archlinux.org/title/AUR_submission_guidelines
|
0fe86c2
to
7db3fef
Compare
Need to fix this. Actually, I think this might be because We might have to push a Running
When this is run using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving because you are the PR author. I did do another pass and things make sense.
I had a question about the |
Signed-off-by: Colton J. McCurdy <mccurdyc22@gmail.com>
2c1e870
to
f2be81c
Compare
Signed-off-by: Colton J. McCurdy <mccurdyc22@gmail.com>
No description provided.