Skip to content

Race condition when installing dependencies #103

@obiwac

Description

@obiwac

On some platforms (Linux), copying to the same destination in parallel won't work.

This is sort of expected behaviour in Bob at the moment, because you can depend on two distinct dependencies which install to the same file (e.g. if two higher-level dependencies depend on two different versions of the same dependency).

BUT obviously this is a problem SO two solutions:

  • Some kind of copy lock. This is good and all but really we shouldn't be ever copying to a file from two different places, because, even if we have this copy lock, well whether the file comes from dependency A or dependency B is non-deterministic.
  • Some kind of warning/error when two dependencies want to install to the same place. This could prove annoying because your dependencies may not all be up to date. But then again I don't know what a better solution is to keep things deterministic and I'm not against forcing people to keep their software up to date. Maybe explore what other buildsystems do to solve this problem. Maybe not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions