From 22c5c846b6f14e1f6d985966df54409d12f0bd92 Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Thu, 10 Sep 2026 00:31:59 +0800 Subject: [PATCH] docs(compat.cuda-driver): the new prose carries no symbol, and the doc comment sits on its function Two things the previous change left behind. The heading it added copied the file's existing star convention, which the current writing style does not use; and the SENTINEL_VERSION block landed between `sentinel_dir`'s doc comment and `sentinel_dir`, so the comment described the constant beneath it instead. Comments only. --- pkgs/c/compat.cuda-driver.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/c/compat.cuda-driver.lua b/pkgs/c/compat.cuda-driver.lua index cab8164..2afed35 100644 --- a/pkgs/c/compat.cuda-driver.lua +++ b/pkgs/c/compat.cuda-driver.lua @@ -47,7 +47,7 @@ -- package's own `[xlings]`, because mcpp materialises `[xlings] deps` for the -- ROOT project only and this must resolve when the package itself installs. -- --- ⭐ THE FARM MIRRORS THE SENTINEL; IT DOES NOT HOLD AN OPINION. +-- THE FARM MIRRORS THE SENTINEL; IT DOES NOT HOLD AN OPINION. -- -- This package used to name `libcuda.so.1` and link that one file. It now -- links every versioned soname the sentinel publishes, which is the same @@ -133,16 +133,17 @@ package = { import("xim.libxpkg.pkginfo") import("xim.libxpkg.log") +-- The version this package asks the sentinel for. One spelling, because the +-- xpm dependency edge and the directory read back must name the same thing or +-- the farm silently mirrors an older sentinel than the one that was installed. +local SENTINEL_VERSION = "0.0.2" + -- The sentinel's install directory. -- -- `pkginfo.install_dir` scans only the member-local xpkgs roots; a dependency -- installed into the shared registry cache is invisible to it and comes back -- nil, so the known roots are tried before giving up. This is the same fallback -- compat.mysql-connector-cpp needs for the same reason. --- The version this package asks the sentinel for. One spelling, because the --- xpm dependency edge and the directory read back must name the same thing or --- the farm silently mirrors an older sentinel than the one that was installed. -local SENTINEL_VERSION = "0.0.2" local function sentinel_dir() local dir = pkginfo.install_dir("xim:libcuda-host-link", SENTINEL_VERSION)