Skip to content

feat: show package's AUR link on error - #1517

Open
uwuclxdy wants to merge 1 commit into
Morganamilo:masterfrom
uwuclxdy:aur-link-on-fail
Open

uwuclxdy wants to merge 1 commit into
Morganamilo:masterfrom
uwuclxdy:aur-link-on-fail

Conversation

@uwuclxdy

Copy link
Copy Markdown
Contributor

This PR adds a helpful link to the package's AUR page on error.

before:

...
==> ERROR: Integrity checks (sha256) differ in size from the source array.
error: failed to download sources for 'pince-0.5-1':
...

after:

...
==> ERROR: Integrity checks (sha256) differ in size from the source array.
error: failed to download sources for 'pince-0.5-1': 
view on AUR: https://aur.archlinux.org/packages/pince
...

@pfeifferj

pfeifferj commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

could we rework this similarly to how packages are already clickable where pince-0.5-1 from your before example would be clickable? I think that's cleaner than the proposed "after"

When color is on, build errors naming a failed AUR base render that name
as a terminal hyperlink to its /pkgbase/ page, which split bases have too.
@uwuclxdy

Copy link
Copy Markdown
Contributor Author

Reworked and rebased. The base name in these errors is now a terminal hyperlink, same as package names in -Ss.

Links go to <AurUrl>/pkgbase/<pkgbase>. /packages/<pkgbase> 404s when the pkgbase isn't a package name, /pkgbase/<name> works for split bases and redirects to the package page otherwise.

Covers the download, build, srcinfo and end-of-run summary errors. Happy to see paru maintained again ;3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants