huyz / brew-for-linux-arm

🍺 The missing package manager for macOS (or Linux, including ARM)
https://brew.sh
BSD 2-Clause "Simplified" License
16 stars 1 forks source link

Issue with tags #1

Closed lnlyssg closed 3 months ago

lnlyssg commented 5 months ago

brew doctor output

-

Verification

brew config output

-

What were you trying to do (and why)?

Install homebrew on an arm machine, I followed the instructions in the README but the install script has changed and now check for tags which are not present as per https://github.com/Homebrew/install/commit/8eb03394e3f4081c1519fc01bb562faf0c6fbd14

What happened (include all command output)?

Failed to query latest Homebrew/brew Git tag.

What did you expect to happen?

Homebrew to install

Step-by-step reproduction instructions (by running brew commands)

git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build  # apt's ruby-build is too out of date
rbenv install 2.6.10
rbenv shell 2.6.10
export HOMEBREW_BREW_GIT_REMOTE=https://github.com/huyz/brew-for-linux-arm
export HOMEBREW_DEVELOPER=1
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | sed '532s/abort/warn/')"
[...]
==> Downloading and installing Homebrew...
Failed to query latest Homebrew/brew Git tag.

And with set -x you can see where it fails::

++ /usr/bin/git tag --list --sort=-version:refname
+ LATEST_GIT_TAG=
+ [[ -z '' ]]
+ abort 'Failed to query latest Homebrew/brew Git tag.'
+ printf '%s\n' 'Failed to query latest Homebrew/brew Git tag.'
Failed to query latest Homebrew/brew Git tag.
sergeycherepanov commented 4 months ago

Hi @lnlyssg,

It's require at least one tag in the repo. You can fork it and put the tag, or just use mine as temporary workaround. https://github.com/sergeycherepanov/linuxbrew-arm

cc @huyz

lnlyssg commented 4 months ago

@sergeycherepanov I ended up making my own fork from brew then adding the extras from this repo to it back in April - https://github.com/lnlyssg/brew

huyz commented 4 months ago

Oh I missed this issue somehow. I'll take a look at it

huyz commented 3 months ago

It's require at least one tag in the repo. You can fork it and put the tag

@sergeycherepanov Is that all that's needed? Ok I started creating tagged releases. I will sync with upstream every week, force-push, and then create a new release every week.