opam: Directly use the --root flag instead of using an env variable
This aligns the behavior with the opam loader.
@aleo it's actually a good idea that I did this slight adaptations ;). Now I recall that
for the deployment [1], it would work but often passing through the opamroot
initialization step in the loader. Because, there is no guarantee that the actual worker
listing the package (with a given opamroot as /tmp/<something>
) will be the same one
ingesting the package. Thus, the opamroot passed along to the loader may not exist, so
it would get initialized and possibly multiple times.
We should probably make that opamroot a configuration entry in the dedicated configuration file targeting a fixed location in the workers to avoid the too many opamroot locations in /tmp (for another time/diff).
Related to #3358 (closed)
Migrated from D6010 (view on Phabricator)
Merge request reports
Activity
Some references in the commit message have been migrated:
- T3358 is now #3358 (closed)
Build is green
Patch application report for D6010 (id=21711)
Rebasing onto 6c123508...
Current branch diff-target is up to date.
Changes applied before test
commit f00d41d0cdd05e2d696cd0a5dca001de1cf24d74 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Tue Jul 20 16:46:10 2021 +0200 opam: Directly use the --root flag instead of using an env variable This aligns the behavior with the opam loader Related to #3358
See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/332/ for more details.