Skip to content

Commit

Permalink
feat(magnetico): add tgragnato/magnetico version 1.61.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tgragnato committed Sep 7, 2024
1 parent 63bb8de commit f446efc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ jobs:
- run: brew test-bot --only-tap-syntax

- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/tgragnato/tap amule

- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/tgragnato/tap magnetico
22 changes: 22 additions & 0 deletions Formula/magnetico.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class Magnetico < Formula
desc "Autonomous (self-hosted) BitTorrent DHT search engine suite"
homepage "https://github.com/tgragnato/magnetico/"
url "https://github.com/tgragnato/magnetico.git",
tag: "v1.61.2",
revision: "5ed053c9c2d38c6650bc6ba22935326dc6d3b378"
license "AGPL-3.0-only"

depends_on "czmq" => :build
depends_on "go" => :build

def install

Check warning on line 12 in Formula/magnetico.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

`brew install --verbose --formula --build-bottle tgragnato/tap/magnetico` failed on macOS Sonoma (14) on Apple Silicon!

==> Fetching tgragnato/tap/magnetico ==> Cloning https://github.com/tgragnato/magnetico.git Updating /Users/runner/Library/Caches/Homebrew/magnetico--git /usr/bin/env git config remote.origin.url https://github.com/tgragnato/magnetico.git /usr/bin/env git config remote.origin.fetch +refs/tags/v1.61.2:refs/tags/v1.61.2 /usr/bin/env git config remote.origin.tagOpt --no-tags /usr/bin/env git config advice.detachedHead false /usr/bin/env git config core.fsmonitor false ==> Checking out tag v1.61.2 /usr/bin/env git checkout -f v1.61.2 -- HEAD is now at 5ed053c9 chore(release): v1.61.2 [skip ci] /usr/bin/env git reset --hard v1.61.2 -- HEAD is now at 5ed053c9 chore(release): v1.61.2 [skip ci] ==> Installing magnetico from tgragnato/tap /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/go.mod /private/tmp/homebrew-unpack20240907-18378-vjo2p3/go.mod /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/types/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/types /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/Dockerfile /private/tmp/homebrew-unpack20240907-18378-vjo2p3/Dockerfile /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/Makefile /private/tmp/homebrew-unpack20240907-18378-vjo2p3/Makefile /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/web/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/web /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/dht/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/dht /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/merkle/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/merkle /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/go.sum /private/tmp/homebrew-unpack20240907-18378-vjo2p3/go.sum /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/.golangci.yml /private/tmp/homebrew-unpack20240907-18378-vjo2p3/.golangci.yml /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/README.md /private/tmp/homebrew-unpack20240907-18378-vjo2p3/README.md /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/COPYING /private/tmp/homebrew-unpack20240907-18378-vjo2p3/COPYING /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/bencode/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/bencode /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/.gitignore /private/tmp/homebrew-unpack20240907-18378-vjo2p3/.gitignore /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/persistence/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/persistence /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/.github/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/.github /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/doc/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/doc /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/metainfo/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/metainfo /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/.git/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/.git /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/metadata/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/metadata /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/main.go /private/tmp/homebrew-unpack20240907-18378-vjo2p3/main.go /usr/bin/env cp -pR /Users/runner/Library/Caches/Homebrew/magnetico--git/stats/. /private/tmp/homebrew-unpack20240907-18378-vjo2p3/stats /usr/bin/env cp -pR /private/tmp/homebrew-unpack20240907-18378-vjo2p3/go.mod /private/tmp/magnetico-20240907-18378-pumiwx/go.mod /usr/bin/env cp -pR /private/tmp/homebrew-unpack20240907-18378-vjo2p3/types/. /private/tmp/magnetico-20240907-18378-pumiwx/types /usr/bin/env cp -pR /private/tmp/homebrew-unpack20240907-18378-vjo2p3/Dockerfile /private/tmp/magnetico-20240907-18378-pumiwx/Dockerfi
ENV["CGO_ENABLED"] = "1"
ENV["GOPATH"] = buildpath
system "go", "build", *std_go_args, "-o", bin/"magnetico", "."
end

test do
system "go", "test", "./..."
system "#{bin}/magnetico", "--version"
end
end

0 comments on commit f446efc

Please sign in to comment.