diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2023-01-31 12:17:37 +0000 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-14 09:39:02 +0000 |
| commit | bef34cb2139be3beedf3a1c11cdd664fea09b8ad (patch) | |
| tree | b4c27b432fbd6379237e55e31bc96614a854d714 /examples | |
| parent | 49a1164ad3b146ec0030f17acbf9eebca8f2f4a0 (diff) | |
| download | libgit2-bef34cb2139be3beedf3a1c11cdd664fea09b8ad.tar.gz | |
ci: convert PATH correctly to Cygwin format on Windows
We provide `BUILD_PATH` to our build script; provide it and mutate
`PATH` when running our tests as well.
We were previously using `cygpath` to try to convert a _list_ of Windows
paths into cygwin / Unix style `PATH` format. This does not work -- it
treats the path list as a single path (with semicolons -- understandably
as those are allowed characters in a Windows path).
For example, `C:\One;C:\Two;C:\Three` is converted to
`/c/one;c:/two;c:/three`.
Add a new function to convert path lists, so that paths are split by
semicolon and fed to `cygpath` independently, then re-joined with a
colon. This means that our example `C:\One;C:\Two;C:\Three` is correctly
converted to `/c/one:/c/two:/c/three`.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
