guitcastro / steps-update-sdk

MIT License
2 stars 3 forks source link

Detect if a tool is already installed, and don't install it again #1

Closed viktorbenei closed 8 years ago

viktorbenei commented 8 years ago

As discussed at: https://github.com/bitrise-io/bitrise-steplib/pull/169

There are two main reasons to do this check:

  1. The SDK manager does not detect if a package is already installed, and so it'll always re-install it, which can take quite some time
  2. The default docker file system (aufs) does not support a file operation required by the Android SDK manager when it creates a backup of the already installed version/directory, and so, in a standard Docker environment it'll always fail. Even worse, it'll fail silently (no proper exit code) and it's really hard to debug, but it'll make the package unaccessible after the re-install attempt.