Skip to content

Commit

Permalink
clean: add last-env directory too
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed May 4, 2023
1 parent fa4e7d5 commit 1400c25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4096,6 +4096,7 @@ let clean cli =
cleandir (OpamPath.Switch.build_dir root sw);
cleandir (OpamPath.Switch.remove_dir root sw);
cleandir (OpamPath.Switch.extra_files_dir root sw);
cleandir (OpamPath.Switch.last_env root sw);
let pinning_overlay_dirs =
List.map
(fun nv -> OpamPath.Switch.Overlay.package root sw nv.name)
Expand Down
1 change: 1 addition & 0 deletions tests/reftests/clean.test
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ rm -rf "${BASEDIR}/OPAM/clean/.opam-switch/backup"/*
rm -rf "${BASEDIR}/OPAM/clean/.opam-switch/build"/*
rm -rf "${BASEDIR}/OPAM/clean/.opam-switch/remove"/*
rm -rf "${BASEDIR}/OPAM/clean/.opam-switch/extra-files-cache"/*
rm -rf "${BASEDIR}/OPAM/clean/.opam-switch/last-env"/*
### opam clean --untracked
Cleaning up switch clean
Remaining directories and files:
Expand Down

0 comments on commit 1400c25

Please sign in to comment.