Skip to content

Commit 189271f

Browse files
committed
fix: create a local tap to install aptly 1.5.0 from file
1 parent ab54d09 commit 189271f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,16 @@ jobs:
6464
# aptly version 1.6.0 results in an segmentation fault. Therefore we fall back to version 1.5.0.
6565
# Since it is not possible to specify a version via brew command a formula was added for aptly 1.5.0
6666
# (source: https://github.com/Homebrew/homebrew-core/pull/202415/files)
67+
# Homebrew 4.6.4 (https://github.com/Homebrew/brew/releases/tag/4.6.4) introduced a breaking change,
68+
# where it isn't possible anymore to install a formula from a file.
69+
# (source: https://github.com/Homebrew/brew/issues/18371#issuecomment-2365396463)
6770
- name: Install Aptly version 1.5.0
68-
run: brew install aptly.rb
71+
run: |
72+
brew tap-new stackitcloud/local-tap --no-git
73+
FORMULA_DIR="$(brew --repository)/Library/Taps/stackitcloud/homebrew-local-tap/Formula/"
74+
mkdir -p "$FORMULA_DIR"
75+
cp ./aptly.rb $FORMULA_DIR
76+
brew install stackitcloud/local-tap/aptly
6977
- name: Install Snapcraft
7078
uses: samuelmeuli/action-snapcraft@v3
7179
- name: Run GoReleaser

0 commit comments

Comments
 (0)