casey / casey/just

Add `relative_path()` to help with multi-platform relpath computation

Open
#3,104 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
35.8k
Forks
846
Avg merge
27m
Merged PRs (30d)
3

Description

At first I was using relpath bash util in all the scripts, until I learnt that it totally breaks on MacOS which even forces bash to be ran as zsh. It would be very helpful to have an OS-agnostic way to compute a relative path between two paths, i.e. similar to [`strip_prefix`](https://doc.rust-lang.org/std/path/struct.Path.html#method.strip_prefix)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.