copy command should not overwrite files #792

Open
bos opened this Issue May 24, 2012 · 1 comment

Comments

Projects
None yet
3 participants
Contributor

bos commented May 24, 2012

(Imported from Trac #802, reported by @dcoutts on 2011-02-11)

see http://hackage.haskell.org/trac/ghc/ticket/4955

Cabal can inadvertently get users into situations where they have registered packages that do not match their package registration information.

Consider the package darcs and darcs-fastconvert which depends on the darcs library. If one installs darcs, then later in the darcs build tree do a cabal copy then it will overwrite the library .hi files but not update the library registration. This will mean that subsequent builds of darcs-fastconvert will fail with very confusing error messages (see the ghc ticket above).

A similar thing could happen with inplace registrations.

The suggestion to avoid this problem is for cabal copy to refuse to overwrite .hi files (executables are fine).

This is also partly related to #645 because some people are using cabal copy to avoid having to use cabal install which spends too long reconfiguring and checking nothing needs building before actually installing.

@ttuegel ttuegel added this to the _|_ milestone Apr 23, 2015

Collaborator

BardurArantsson commented Jun 25, 2015

Is this still relevant at all?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment