]> Kevux Git Server - rit/commit
gitlab-ci: migrate Windows builds away from Chocolatey
authorPatrick Steinhardt <ps@pks.im>
Mon, 15 Jun 2026 12:21:40 +0000 (14:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Jun 2026 20:05:27 +0000 (13:05 -0700)
commit0e7b51fed23c156600659bccc50b01430b9821dd
tree7814b2530291f13ca40d18db20c9cb0d9e790036
parenta89346e34a937f001e5d397ee62224e3e9852040
gitlab-ci: migrate Windows builds away from Chocolatey

The Windows builds in GitLab CI use Chocolatey to install dependencies.
Unfortunately, Chocolatey seems to be very unreliable, which causes the
jobs to fail very regularly. This is a limitation that seems to be
somewhat known [1]:

  As an organization, you want 100% reliability (or at least that
  potential), and you may want full trust and control as well. This is
  something you can get with internally hosted packages, and you are
  unlikely to achieve from use of the Community Package Repository.

So using the Community Package Repository is kind of discouraged in case
one wants reliability. We _do_ want reliability though, and we cannot
easily switch to an enterprise license to fix this issue.

Introduce a new script that downloads and installs dependencies
directly. This has a couple of benefits:

  - We can drop our dependency on Chocolatey completely, thus improving
    reliability.

  - We can easily cache the installers.

  - We get direct control over the exact versions we install.

  - Installing dependencies is sped up from roundabout 3 minutes to 1
    minute.

[1]: https://docs.chocolatey.org/en-us/community-repository/community-packages-disclaimer/#summary

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitlab-ci.yml
ci/install-dependencies.ps1 [new file with mode: 0755]