Skip to content

elm-install frequently fails when >1 build is run in parallel #40

Description

@rupertlssmith

I get this error a lot on my build server:

error: git '--git-dir=/var/lib/jenkins/.elm-install/github.com/elm-lang/html/.git' '--work-tree=/var/lib/jenkins/.elm-install/github.com/elm-lang/html' checkout '1.0.0'  2>&1:fatal: Unable to create '/var/lib/jenkins/.elm-install/github.com/elm-lang/html/.git/index.lock': File exists.

Another git process seems to be running in this repository, e.g.
an editor opened by 'git commit'. Please make sure all processes
are terminated then try again. If it still fails, a git process
may have crashed in this repository earlier:
remove the file manually to continue.. Use --trace to view backtrace

The problem is easy enough to work around by either:

  • Making parallel builds run sequentially
  • Containerizing every build to ensure they do not interfere with each other.

So perhpas it is unfair to rase this as an issue against elm-github-install?

But it would be nice if it were possible to have a centralized cache under ~/.elm-install and for parallel builds to be able to run.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions