Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Treatment of dangling symlinks in OpamFilename.files #4651

Open
14 tasks
dra27 opened this issue Apr 28, 2021 · 0 comments
Open
14 tasks

Treatment of dangling symlinks in OpamFilename.files #4651

dra27 opened this issue Apr 28, 2021 · 0 comments
Assignees
Projects

Comments

@dra27
Copy link
Member

dra27 commented Apr 28, 2021

Came up in #4641. OpamSystem.files_with_links doesn't return dangling symlinks (symlinks whose target does not exist) because Sys.file_exists returns false for these entries. There are some situations where this is wanted, and some where it definitely is not. I went through the locations - we should confirm the list and fix the ones which require it. There is OpamSystem.files_all_not_dir for this purpose.

  • OpamAdminCommand.index_command - doesn't want dangling symlinks
  • OpamAction.remove_package_aux - should consider them, it's a bug
  • OpamAdminRepoUpgrade.do_upgrade - doesn't want dangling symlinks
  • OpamListCommand.apply_selector - not sure
  • OpamSwitchCommand.reinstall - wants dangling links
  • OpamPinCommand.edit - wants dangling links
  • OpamPackage.list and OpamPackage.prefixes - not sure
  • OpamVCS.Make.sync_dirty - wants dangling symlinks ??
  • OpamPinned.files_in_source - wants dangling symlinks ??
  • OpamSwitchState.load - doesn't want dangling symlinks
  • OpamFileTools.extra_files_default and OpamFileTools.add_aux_files - wants to have them and warn about them? or just ignore?!
  • OpamFormatUpgrade.from_1_1_to_1_2 - probably wants to delete dangling symlinks ?!
  • OpamFormatUpgrade.from_2_0_alpha3_to_2_0_beta - doesn't want dangling symlinks
  • Opam_installer.options - doesn't want dangling symlinks
@dra27 dra27 added this to the 2.2.0~alpha milestone Apr 28, 2021
@dra27 dra27 self-assigned this Jul 2, 2021
@dra27 dra27 added this to To do in Opam 2.2.0 via automation Jul 2, 2021
@dra27 dra27 moved this from To do to Bump to 2.3? in Opam 2.2.0 Jan 13, 2022
@dra27 dra27 added this to To do in Opam 2.3 via automation May 17, 2022
@dra27 dra27 removed this from Bump to 2.3? in Opam 2.2.0 May 17, 2022
@dra27 dra27 removed this from the 2.2.0~alpha milestone May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.3
  
To do
Development

No branches or pull requests

1 participant