Skip to content

Comments

PosixSourceAccessor::cachedLstat(): Use absolute path#10151

Merged
thufschmitt merged 2 commits intoNixOS:masterfrom
edolstra:fix-lstat-cache
Mar 5, 2024
Merged

PosixSourceAccessor::cachedLstat(): Use absolute path#10151
thufschmitt merged 2 commits intoNixOS:masterfrom
edolstra:fix-lstat-cache

Conversation

@edolstra
Copy link
Member

@edolstra edolstra commented Mar 4, 2024

Motivation

Using the relative path can cause collisions between cache entries for PosixSourceAccessors with different roots.

Context

Priorities and Process

Add 👍 to pull requests you find important.

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

Using the relative path can cause collisions between cache entries for
PosixSourceAccessors with different roots.
@thufschmitt thufschmitt merged commit 0d26358 into NixOS:master Mar 5, 2024
@github-actions
Copy link

github-actions bot commented Mar 5, 2024

Backport failed for 2.20-maintenance, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin 2.20-maintenance
git worktree add -d .worktree/backport-10151-to-2.20-maintenance origin/2.20-maintenance
cd .worktree/backport-10151-to-2.20-maintenance
git switch --create backport-10151-to-2.20-maintenance
git cherry-pick -x 9ee590e11301cda2b5d6341fb77f13369c3107e6 4967c5ff6ba96b27ad1d855b3b32712c0fc3dfcf

@edolstra edolstra deleted the fix-lstat-cache branch March 5, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants