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

[backport 2.18-maintenance] AttrCursor: Remove forceErrors #11445

Merged

Conversation

eclairevoyant
Copy link
Contributor

Motivation

backport of #10564

Context

fixes #3872 for those on nix 2.18

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

(cherry picked from commit 8b86f41)
Instead, force evaluation of the original value only if we need to
show the exception to the user.

(cherry picked from commit 2c88930)
(cherry picked from commit eeb4c40)
@github-actions github-actions bot added new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority labels Sep 8, 2024
@eclairevoyant eclairevoyant marked this pull request as draft September 8, 2024 14:53
@eclairevoyant
Copy link
Contributor Author

state is defined in eval-cache.hh but not visible in eval-cache.cc, idk what do

This makes the previous commits work.
Newer versions store it in all EvalErrors.
@roberth
Copy link
Member

roberth commented Sep 9, 2024

CI / installer (push) failure can be ignored. I'll try to backport its fix, but it's not a blocker afaic.

@eclairevoyant eclairevoyant marked this pull request as ready for review September 9, 2024 16:27
@eclairevoyant
Copy link
Contributor Author

Tested locally as well, seems to avoid the cached failure as expected.

@roberth roberth merged commit 6354f84 into NixOS:2.18-maintenance Sep 9, 2024
14 of 15 checks passed
@roberth
Copy link
Member

roberth commented Sep 9, 2024

Thanks!

@eclairevoyant eclairevoyant deleted the backport-10564-to-2.18 branch September 9, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-cli Relating to the "nix" command with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants