The following change ocaml/opam-repository@ee5295d has no effect on unix systems. However it will still trigger a rebuild of your switch.
We could try to be a bit more clever and:
- store all the value of all the variables used in a given package, as the time of last install
- upon testing if a package needs to be rebuilt, we:
- Set the default values in
x-env-path-rewrite for each undefined environment variable
- Do a pass on the previous and new opam files, so that all the variables are replaced by their values and all the formulas reduced. If a field such as
available or build reduces to true or [] respectively, remove it.
Point 1. could also be useful down the line as we could reuse some of those variables (e.g. with-test) when reinstalling/upgrading/downgading the package. However this requires us to think about design and UI around this, so this would be done later.
Related to #6505
The following change ocaml/opam-repository@ee5295d has no effect on unix systems. However it will still trigger a rebuild of your switch.
We could try to be a bit more clever and:
x-env-path-rewritefor each undefined environment variableavailableorbuildreduces totrueor[]respectively, remove it.Point 1. could also be useful down the line as we could reuse some of those variables (e.g.
with-test) when reinstalling/upgrading/downgading the package. However this requires us to think about design and UI around this, so this would be done later.Related to #6505