Skip to content

Commit 0b5f7a4

Browse files
Copilotbytemain
andauthored
Document vfox core uv-build handling
Agent-Logs-Url: https://github.com/version-fox/vfox-python/sessions/a8ca8eda-5106-4cb0-adc3-ba11681c1d0f Co-authored-by: bytemain <13938334+bytemain@users.noreply.github.com>
1 parent 2b72f37 commit 0b5f7a4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/util.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,7 @@ end
587587
function uvBuildPreInstall(version)
588588
local ok, value = pcall(function()
589589
local build = findUvBuild(version)
590+
-- Return url/sha256 so vfox core performs download, checksum verification, and archive extraction.
590591
return {
591592
version = version,
592593
url = uvBuildDownloadUrl(build),
@@ -603,8 +604,11 @@ function uvBuildPreInstall(version)
603604
if uvBuildPackage == nil then
604605
error("uv-build PreInstall did not provide install metadata")
605606
end
606-
if isNilOrEmpty(uvBuildPackage.url) or isNilOrEmpty(uvBuildPackage.sha256) then
607-
error("uv-build PreInstall url and sha256 must not be empty")
607+
if isNilOrEmpty(uvBuildPackage.url) then
608+
error("uv-build PreInstall url must not be empty")
609+
end
610+
if isNilOrEmpty(uvBuildPackage.sha256) then
611+
error("uv-build PreInstall sha256 must not be empty")
608612
end
609613
return uvBuildPackage
610614
end

0 commit comments

Comments
 (0)