Backbase/variants

[Investigation] See if release could be automated

gderaco opened this issue · 5 comments

Investigation about automation of brew release pipeline, including building bottles and linking them to the formulae

This has been done in our Tap

Hi @arthurpalves

We have some issues installing the variants tool via our Homebrew Artifactory proxy and I believe it might be caused because your package is not available in the Homebrew Formulae. I'm not a Homebrew expert so I don't know why it is not visible in the formulae list or how much work it would take to get it there. All I can see is that even though I specify HOMEBREW_ARTIFACT_DOMAIN it still tries to install the package directly from GitHub instead of our private Artifactory.

This is the command and error I receive (because my company policy doesn't allow downloading certain file formats from the internet without going through our Artifactory):

user % HOMEBREW_ARTIFACT_DOMAIN=... brew install variants
==> Fetching backbase/m/variants
==> Downloading https://github.com/Backbase/homebrew-m/releases/download/1.2.1/variants-1.2.1.arm64_monterey.bottle.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/271573302/77504ff6-7152-4533-8d22-51144823fa62?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4Z
############################################################################################################################################################################################################### 100.0%curl: (22) The requested URL returned error: 403

Error: variants: Failed to download resource "variants"
Download failed: https://github.com/Backbase/homebrew-m/releases/download/1.2.1/variants-1.2.1.arm64_monterey.bottle.tar.gz

Hi @jenskuhrjorgensen,
Sorry for the late reply.

your package is not available in the Homebrew Formulae

We want to maintain our own tap instead, hence the installation requires us to specify the tap backbase/m.

it still tries to install the package directly from GitHub instead of our private Artifactory.

I see that it tries to install a bottle (a pre built package with a binary). This is to make installation faster by not building it from the source. The bottle has been pre built during the release and stored here https://github.com/Backbase/homebrew-m/releases/download/1.2.1/. I believe (but could be wrong) that if you try to force it to build from source it would work fine in your case:

brew install backbase/m/variants --build-from-source

@arthurpalves that worked - thanks a lot! 😀

@jenskuhrjorgensen Awesome. Don't hesitate to open a new issue if you need help with anything.