Skip to content

Commit dbf965c

Browse files
committed
fix(smol): downgrade Python to 3.12 for gyp compatibility
Python 3.13 has hashlib.md5() breaking changes that cause gyp to fail: TypeError: Strings must be encoded before hashing Python 3.12 is the recommended version per Node.js BUILDING.md.
1 parent fbc244a commit dbf965c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-smol.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ jobs:
345345
if: steps.smol-cache-valid.outputs.valid != 'true' || inputs.force
346346
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
347347
with:
348-
python-version: '3.13.0'
348+
# Use 3.12 instead of 3.13 - gyp has hashlib compatibility issues with 3.13.
349+
python-version: '3.12'
349350

350351
- name: Verify Python installation
351352
if: steps.smol-cache-valid.outputs.valid != 'true' || inputs.force

0 commit comments

Comments
 (0)