cargo-c: cinstall: destdir path joining problems on Windows with absolute paths
I run
cargo cinstall --release --frozen --library-type=cdylib --destdir=C:/foo
but things get installed into C:/usr:
C:/usr/
└── local
├── bin
│ └── rav1e.dll
├── include
│ └── rav1e
│ └── rav1e.h
└── lib
├── librav1e.dll.a
├── pkgconfig
│ └── rav1e.pc
└── rav1e.def
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (14 by maintainers)
Commits related to this issue
- append_to_destdir: handle Windows paths properly It currently uses is_absolute() to strip one leading component which doesn't work for paths like "C:/foo", "C:foo" and "/foo" which are either not abs... — committed to lazka/cargo-c by lazka 4 years ago
- append_to_destdir: handle Windows paths properly It currently uses is_absolute() to strip one leading component which doesn't work for paths like "C:/foo", "C:foo" and "/foo" which are either not abs... — committed to lazka/cargo-c by lazka 4 years ago
- append_to_destdir: handle Windows paths properly It currently uses is_absolute() to strip one leading component which doesn't work for paths like "C:/foo", "C:foo" and "/foo" which are either not abs... — committed to lazka/cargo-c by lazka 4 years ago
- append_to_destdir: handle Windows paths properly It currently uses is_absolute() to strip one leading component which doesn't work for paths like "C:/foo", "C:foo" and "/foo" which are either not abs... — committed to lu-zero/cargo-c by lazka 4 years ago
my attempt 😃