ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.24k stars 353 forks source link

Clean `last-env` files #5973

Open rjbou opened 4 months ago

rjbou commented 4 months ago

PR #5962 moved storage of last-env files at root (in <oam-root>/.last-env) instead of at switch level. It is no more cleaned during switch cleaning (https://github.com/ocaml/opam/pull/5962#discussion_r1611340591). These files need to remain until the terminal session is ended, or more generally at reboot. One discussed solution is to delete them according timestamp information.