It is not obvious when we really need to strip the _build/ prefix,
but stripping is definitely made under the assumption that the pkg_dir
starts with _build/. This assumption might not hold. Issue #94
demonstrates it. To fix #94 it is proposed to apply the stripping only
if pkg_dir indeed starts with _build.
It is possible, that a better solution would be to strip _build if the
pkg_dir starts with _build without checking the list of
extractables. Or even don't strip if it is not needed.
The reason that _build is stripped is so that ocamlbuild style projects can have documentation paths that match module paths as _build mirrors the source hierarchy in these circumstances.
It is not obvious when we really need to strip the
_build/
prefix, but stripping is definitely made under the assumption that thepkg_dir
starts with_build/
. This assumption might not hold. Issue #94 demonstrates it. To fix #94 it is proposed to apply the stripping only ifpkg_dir
indeed starts with_build
.It is possible, that a better solution would be to strip
_build
if the pkg_dir starts with_build
without checking the list of extractables. Or even don't strip if it is not needed.