fix(ci): the Windows builder may import cfgmgr32.dll, which is part of Windows #3301
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3301
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/win-cfgmgr32"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The release's Windows job (run 1830) compiles longshot-builder.exe, then stops at
what was built is not usable: needs cfgmgr32.dll, which is not part of Windows. cfgmgr32.dll is System32's device-configuration API, imported beside setupapi and hid for the controllers;scripts/longshot_builder.py'sWINDOWS_UI_IMPORTjust didn't list it. This adds it, so the Windows build passes its usability check again.Read
WINDOWS_UI_IMPORTinscripts/longshot_builder.pyand the newWindowsImportsTestintests/test_longshot_builder.py.Testing
Tested:
python -I -B tests/test_longshot_builder.pyon Linux: the new test fails onmain(needs cfgmgr32.dll, which is not part of Windows) and passes here. Nothing the game runs changes: only the build script's check of which DLLs the Windows builder may import.Still to test:
Measurements
Nothing to measure: a build check's allowlist.
Risks
None for players: cfgmgr32.dll ships in System32 on every supported Windows. A revert is enough.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). — onlytests/test_longshot_builder.pyran heremain, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
WIP: fix(ci): the Windows builder may import cfgmgr32.dll, which is part of Windowsto fix(ci): the Windows builder may import cfgmgr32.dll, which is part of Windows