~/lightning

Lightning Talk – How Bazel Handles Symlinks

Lightningat BazelCon 2019 · 2019-12-11..12-12· [linux-and-operating-systems]
links:none on file
slides:none on file

Bazel implements a custom realpath via lstat function and a pair of co‑recursive resolvers that detect symlink cycles and two kinds of infinite expansion (ancestor->descendant and descendant->ancestor). It records the logical resolution chain as both a linked list + BST chain so membership and ancestor/descendant checks are O(log n). It uses the kernel’s symlink follow limit for pathological self-cycles and delivers incremental correctness and fast incremental builds while emitting clear error messages for bad symlink layouts.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Speaker intro
  3. 2:09What are symlinks
  4. 4:16Why symlinks matter
  5. 6:46Symlink challenges
  6. 8:10Symlink cycles and expansions
  7. 9:56Bazel’s symlink resolution
  8. 10:59Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.