Skip to content

new-build copy/register race condition #3946

Closed

Description

@ezyang

Presently, copying and registering a package is done in two steps. However, once the store directory has been created, subsequent invocations of new-build will assume the package has been installed, even if it isn't registered in the package database. Thus, there is a potential race condition where the directory is created, but the package is not registered.

Unsure about severity.

Activity

  1. added
    cabal-install: v2-build system
    on Oct 7, 2016
  2. dcoutts commented on Oct 12, 2016

    @dcoutts
    Contributor

    See the issue about locking in the store #3741. This issue is covered there I think.

  3. ezyang commented on Oct 12, 2016

    @ezyang
    ContributorAuthor

    Not directly in the original description, I think, but we can consolidate there. EDIT: OK, I guess it is addressed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cabal-install: v2-build systemresolution: duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions