Skip to content
Snippets Groups Projects

Make GHCup isolate installs non-overwriting by default

Merged Arjun Kathuria requested to merge arjun/ghcup-hs:master into master
1 unresolved thread

ghcup's behavior for cabal / hls / stack now in isolated installs is overwriting. This MR changes that to non-overwriting.

if file already exists at the given isolated location, it will error and report so.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
483 483 <> maybe "" (("-" <>) . T.unpack . prettyVer) mver'
484 484 <> exeExt
485 485 let destPath = inst </> destFileName
486
487 whenM (checkFileAlreadyExists destPath)
  • Arjun Kathuria added 1 commit

    added 1 commit

    • df758d82 - swap checkFileAlreadyExists with throwIfFileAlreadyExists

    Compare with previous version

  • Author Contributor

    did.

  • merged

  • Please register or sign in to reply
    Loading