Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • P pakcs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • curry
  • pakcs
  • Merge requests
  • !30

Draft: Explicitly translate paths for Windows when generating c2p state

  • Review changes

  • Download
  • Patches
  • Plain diff
Open Fredrik Wieczerkowski requested to merge translate-c2p-paths into master Oct 18, 2022
  • Overview 1
  • Commits 1
  • Pipelines 2
  • Changes 1

We need to translate Unix paths (e.g. /c/Users/...) to Windows paths (e.g. C:/Users/...) when calling from a MinGW process into a native Windows process. MinGW handles this conversion automatically in simple cases (e.g. single command-line arguments), but fails in more complex cases which is why we need an explicit translation there. On Unix-like systems the translation reduces to a simple no-op (see NATIVEPATH=echo).

Marked as a draft for now since it needs more testing, especially to make sure that we e.g. don't regress on the SWI build.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: translate-c2p-paths