Skip to content
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

Mercurial fetcher may suffer from issues similar to git smudging #9371

Open
roberth opened this issue Nov 17, 2023 · 1 comment
Open

Mercurial fetcher may suffer from issues similar to git smudging #9371

roberth opened this issue Nov 17, 2023 · 1 comment
Labels
bug fetching Networking with the outside (non-Nix) world, input locking question

Comments

@roberth
Copy link
Member

roberth commented Nov 17, 2023

Describe the bug

I am unfamiliar with mercurial and I haven't confirmed whether these are truly a reproducibility problems, but we have to make sure that the inputs to the fetcher fully determine the returned file system objects.

tl;dr Mercurial's more narrow use may cause important issues to go unnoticed while users work around them, but require a breaking change for the problems to be fixed properly.
Mercurial isn't as frequently used as git, and it might take the involvement of an unconfigured or "misconfigured" mercurial to figure this out. Users might solve the problem by changing configuration, but this would make any expression that depends on a mercurial tree to be second class unless we solve these issues. Solving them may cause breaking changes, which is why I'm writing this issue as a non-hg user.

Steps To Reproduce

  1. Enable or disable a Mercurial extension
  2. Clear ~/.cache/nix
  3. Fetch from a repo that is affected by the extension
  4. Observe that a different store object is returned

Expected behavior

Nix produces the same results regardless of what's in the Mercurial configuration.

nix-env --version output

Additional context

fetchTree

Priorities

Add 👍 to issues you find important.

@roberth roberth added bug question fetching Networking with the outside (non-Nix) world, input locking labels Nov 17, 2023
@Ericson2314
Copy link
Member

I am tempted to demote builtins.fetchMercurial to being an unstable feature. IMO it was sort of an oversight to grandfather it in (vs we correctly did not grandfather in unstable features like the new CLI).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fetching Networking with the outside (non-Nix) world, input locking question
Projects
None yet
Development

No branches or pull requests

2 participants