Skip to content

prefer-remote-fetch does not expose attributes for fetchers #467200

Closed

Description

@fooker

Some fetchers, like fetchgit expose additional attributes (fetchgit.getRevWithTag). When the prefer-remote-fetch overlay is applied, these attributes are no longer exposed.

The only usage I know of is fetchFromGitHub when fetchgit is used internally.

Steps to reproduce

nix-build -E '(import <nixpkgs> { overlays = [(self: super: super.prefer-remote-fetch self super)]; }).fetchFromGitHub { owner = "NixOS"; repo = "nixpkgs"; rev = "b4f59db7583ec331051831a679eda8f3b5c62c24"; forceFetchGit = true; }'

Activity

  1. jhhuh commented on Dec 15, 2025

    @jhhuh
    Contributor

    I encountered this issue today as well. Disappointing to see it in a stable release.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions