Skip to content

setup-wsl + actions/checkout ? #31

@MarximusMaximus

Description

@MarximusMaximus

I'm not sure if this issue is for setup-wsl or actions/checkout.

I've run setup-wsl, and that worked. But I'm trying to use actions/checkout now to checkout the repo and it fails in "neat" ways.

  1. it will default to using windows git and muck up all line endings
    1.a)
  • add git and git-lfs additional packages to WSL
  • write a git.cmd override that is wsl git %* so that we use WSL's git
  • setup WSLENV so that GITHUB_* and RUNNER_* env vars get passed down to WSL
  • basic git commands now work and use WSL's git!
  1. actions/checkout does indeed use wsl's git, but uses all windows paths (presumably b/c it's running via node in win32)
    2.a) have git.cmd use ${{ steps.setup-wsl.outputs.wsl-shell-wrapper-path }} git %* instead, but that just yields:
Invalid arguments 
Usage: wsl-sh [-u <user>] <script file a.k.a. {0}> 

2.b) tried to override node in the same way as git, but it doesn't work (it either still uses the WIN32 node, not WSL node; or is using the WIN32 env vars and not the WSL env vars)

Any ideas would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions