Skip to content

fix(ci): add UCRT64 to GITHUB_PATH for Windows build - #55

Merged
tkolleh merged 3 commits into
mainfrom
dependabot
Apr 19, 2026
Merged

fix(ci): add UCRT64 to GITHUB_PATH for Windows build#55
tkolleh merged 3 commits into
mainfrom
dependabot

Conversation

@tkolleh

@tkolleh tkolleh commented Apr 19, 2026

Copy link
Copy Markdown
Owner

Summary

Fixes the Windows build release job failure: ToolNotFound: failed to find tool "gcc".

Root Cause

Two interrelated issues:

  1. MSYS2 PATH gap: The msys2/setup-msys2 action only adds C:\msys64\usr\bin to $GITHUB_PATH, not the UCRT64 subsystem bin directory (C:\msys64\ucrt64\bin). Native Windows programs (lx.exe, just.exe) that run outside the MSYS2 translation layer cannot find gcc.exe or lua.exe.

  2. Missing --lua-dir in justfile: The ensure-deps recipe didn't pass --lua-dir like every other lx invocation, causing Lux to fail auto-discovering Lua on non-standard paths (MSYS2 installs Lua at /ucrt64/bin/lua.exe).

Changes

  • .github/workflows/release-please.yml: Add Add UCRT64 to PATH (Windows) step after MSYS2 setup that adds C:\msys64\ucrt64\bin to $GITHUB_PATH
  • justfile: Pass --lua-dir {{ lua_prefix }} to the ensure-deps recipe, consistent with all other lx invocations

Testing

This is a pre-existing issue — the Windows build has always had this PATH gap. The fix ensures gcc.exe, lua.exe, and other UCRT64 tools are discoverable by native Windows programs.

tkolleh added 3 commits April 19, 2026 01:49
…igration

- Pin all GitHub Actions to immutable SHA digests (SLSA Level 3)
- Add Renovate configuration with corrected lux.toml regex and
  github-tags datasource (no native luarocks datasource exists)
- Map busted, luacov, luastatic to their canonical GitHub repos
- Add SBOM generation (anchore/sbom-action) for linux-x86_64 only
- Add build provenance attestation (actions/attest-build-provenance)
- Add update-release-notes job with attestation verification instructions
- Add luarocks-publish environment to publish workflow
- Fix indentation in publish.yml rockspec cleanup step
- Preserve paths-ignore in release-please workflow
- No permission changes to tests.yml (inherits repo default read)
…ensure-deps

The Windows build failed with 'ToolNotFound: failed to find tool gcc' because:
1. The MSYS2 setup-msys2 action only adds C:\msys64\usr\bin to GITHUB_PATH,
   not the UCRT64 subsystem bin directory. Native Windows programs (lx.exe,
   just.exe) couldn't find gcc.exe or lua.exe on the PATH.
2. The justfile's ensure-deps recipe didn't pass --lua-dir like other lx
   invocations, causing Lux to fail discovering Lua on non-standard paths.

Fixes:
- Add 'Add UCRT64 to PATH (Windows)' step after MSYS2 setup
- Pass --lua-dir to ensure-deps recipe in justfile
@tkolleh
tkolleh merged commit 59ef9d6 into main Apr 19, 2026
2 checks passed
@tkolleh
tkolleh deleted the dependabot branch April 19, 2026 20:48
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