Skip to content

Fake branch names make nixpkgs-update error #552

Description

@lnk3

Recently steam-tui update failed https://nixpkgs-update-logs.nix-community.org/steam-tui/2026-01-05.log.

On repology a new 0.3.0b version came out, from the AUR. But they actually used a non existent branch / tag: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=steam-tui, which doesn't exist https://github.com/dmadisetti/steam-tui/archive/0.3.0b.tar.gz and returns 404.

After reading the docs it seems to me that this case is not the "Can't find hash or source url", since the url is found but is non-existing.

nixpkgs-update shouldn't provide the 0.3.0b update in the first place so we won't have error: Cannot build '/nix/store/4klx7wdnqfryssxr8d6bdc9ks4hkx5m9-steam-tui-0.3.0b.drv'

It's my first contribution on this repo, after skimming and grepping the code I think:

  • src/Repology.hs i shouldn't touch, since the new tag is scraped correctly
  • src/Update.hs has already some filters around the url, so I think I'll add a new one that checks if the url returns 200 before sending it out to the rewriter to prevent the error.
  • src/GH.hs is where i'll add the status code check

I'll open a PR asap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions