jj/cli
Martin von Zweigbergk e4bf147164 build: fix cargo publish by symlinking cli/docs->docs
I think `cargo publish` will currently fail because of the
`include_str!()` in `cli/src/commands/help.rs` pointing to
`../../../docs/`, i.e. outside of the crate directory. This patch
attempts to fix that creating a `cli/docs` symlink to `docs` and makes
the `include_str!` use that symlink. I hope the symlink will be
resolved at `cargo publish` time so it also works in the published
crate.

Because symlinks don't work well on Windows, I updated `cli/build.rs`
to include the original path (the one pointing outside the crate) if
`cli/docs` is not a symlink, so the regular build still should work on
Windows (but `cargo publish` won't).

Thanks to Yuya for proposing this solution.
2024-11-05 17:37:14 -08:00
..
examples revset: allow iterators to return evaluation errors 2024-10-18 17:09:35 -04:00
src build: fix cargo publish by symlinking cli/docs->docs 2024-11-05 17:37:14 -08:00
testing style: inline variables into format strings 2024-10-04 22:29:13 +02:00
tests cli: don't use format_*() in annotate template, truncate author, omit commit id 2024-11-05 14:49:57 +09:00
build.rs build: fix cargo publish by symlinking cli/docs->docs 2024-11-05 17:37:14 -08:00
Cargo.toml build: fix cargo publish by symlinking cli/docs->docs 2024-11-05 17:37:14 -08:00
docs build: fix cargo publish by symlinking cli/docs->docs 2024-11-05 17:37:14 -08:00
LICENSE