Skip to content

Format of path to executable not compatible on self-hosted Windows with nektos/act #1066

Closed
@CodeFHD

Description

@CodeFHD

Description:
I am trying to run the following action locally using nektos/act:
https://github.com/LuxCoreRender/LuxCore/blob/for_v2.10/.github/workflows/wheel-builder.yml

This workflow calls pypa/cibuildwheel@v2.22.0, which in turn calls actions/setup-python@v5

Afterwards, the python executable is called int eh following line, using steps.python.outputs.python-path
https://github.com/pypa/cibuildwheel/blob/094782a41d9824cd78939e3fb82f5cf65cb566b5/action.yml#L37C1-L37C62

The issue has initially been reported with naktos/act:
nektos/act#2704

After fruther investigation, the issue appears to be related to the form of the path in the output, using only single-backslash in a Windows-style-path C:\Users\.... Any windows-bash flavor I tried does not support this particular format, as elaborated in the nektos/act issue linked above.
A quick test by modifying cibuildhweels to replace back-slash with forward-slash appears to make this step work.

Wanted to forward this issue here. Perhaps there are additional instructions that I did not find so far?
Or else, the output format might be changed?

I did not see anything related in other Issues on this repository that contain Windows as a search term.

Action version:
v5

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted
  • nektos/act

Tools version:
3.11, others not tested

Repro steps:
A description with steps to reproduce the issue. If your have a public example or repo to share, please provide the link.

Expected behavior:
See above

Actual behavior:
See above

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions