Skip to content

Filter empty entries out of the SDK list - #286

Open
makadore wants to merge 1 commit into
alliedmodders:1.12-devfrom
makadore:fix/empty-sdks-list
Open

Filter empty entries out of the SDK list#286
makadore wants to merge 1 commit into
alliedmodders:1.12-devfrom
makadore:fix/empty-sdks-list

Conversation

@makadore

Copy link
Copy Markdown

--sdks= splits into a list holding one empty string rather than an empty list, and that empty string is then looked up as an SDK name. It never matches anything, so configure fails with Error: hl2sdk- was not found. and Missing hl2sdks: — both without a name, which makes the cause hard to see.

The pr-checks workflow passes --sdks= for the two SourceHook test builds, so those steps cannot configure at all on this branch. master already filters empty entries here; this is the same line.

Checked on a clean 1.12-dev checkout: before, python3 ../configure.py --enable-optimize --enable-tests --sdks= fails as above; after, it configures, builds, and the SourceHook suite passes 16 of 16 on linux-x86.

Ordinary builds are unaffected — --sdks=hl2dm produces the same artifacts before and after, and the only differences between the two binaries are the build path and the compile timestamp, which also differ between two runs of the unmodified code.

--sdks= splits into a list holding one empty string rather than an empty
list, and that empty string is then looked up as an SDK name, so configure
fails with an empty name in both messages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant