opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
This PR introduces OpamUrl.kind which i think is an improvement over OpamUrl.local_{file,dir} as way of detecting if a url is local or not. Most functions that use OpamUrl.local_{file,dir} already check later if the file exist and fail gracefully so there is no need to check twice.
Fixes #5971
This PR introduces
OpamUrl.kind
which i think is an improvement overOpamUrl.local_{file,dir}
as way of detecting if a url is local or not. Most functions that useOpamUrl.local_{file,dir}
already check later if the file exist and fail gracefully so there is no need to check twice.I opened https://github.com/ocaml/opam/issues/5978 to think about removing
local_{file,dir}
in the future, but for now this would be a fairly intrusive change.