Skip to content

[All OS] hub utility will be removed on October 2 #8362

@vpolikarpov-akvelon

Description

@vpolikarpov-akvelon

Breaking changes

Utility hub will be removed from runner images.

Target date

Image deployment is starting on October 2nd and will take 3-4 days.

The motivation for the changes

The utility deprecated in favor of official GitHub CLI in 2020 and doesn't receive updated since then.
It doesn't support new features and may behave unpredictable with new versions of git.

Blog post: https://mislav.net/2020/01/github-cli/

Possible impact

The utility mentioned won't be available out-of-the-box on Ubuntu runners. Workflows that use the utility will break.

Platforms affected

  • Azure DevOps
  • GitHub Actions

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • Windows Server 2019
  • Windows Server 2022

Mitigation ways

Consider migrating to gh cli tool.

The other option is to install hub utility manually in workflow.

On Mac OS:

brew install hub

On Ubuntu:

sudo apt-get update && sudo apt-get install -y hub
Notes for Ubuntu 20.04

The repository of Ubuntu 20.04 serves old version of hub utility. Consider manual installation if you need the latest one:

hub_version="2.14.2"
hub_filename="hub-linux-amd64-${hub_version}"
downloadUrl="[https://github.com/mislav/hub/releases/download/v${hub_version}/${hub_filename}.tgz](https://github.com/mislav/hub/releases/download/v$%7Bhub_version%7D/$%7Bhub_filename%7D.tgz)"
curl -fsSL ${downloadUrl} -o /tmp/${hub_filename}.tgz
tar xzf /tmp/${hub_filename}.tgz -C /tmp/
mv /tmp/${hub_filename}/bin/hub /usr/local/bin
hub --version

On Windows:

choco install hub -y --ignore-dependencies --no-progress

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions