Skip to content

Commit

Permalink
ente-cli 0.2.2 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieutu committed Dec 20, 2024
1 parent f535198 commit 71160dc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Formula/e/ente-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class EnteCli < Formula
desc "Utility for exporting data from Ente and decrypt the export from Ente Auth"
homepage "https://github.com/ente-io/ente/tree/main/cli"
url "https://github.com/ente-io/ente/archive/refs/tags/cli-v0.2.2.tar.gz"
sha256 "d03754880fe7dfdc422b37e4864c2aa469a2b19c645346de2d2de7fa62b71de3"
license "AGPL-3.0-only"
head "https://github.com/ente-io/ente.git", branch: "main"

depends_on "go" => :build

def install
cd "cli" do
system "go", "build", *std_go_args(ldflags: "-s -w"), "main.go"
bin.install_symlink "ente-cli" => "ente"
end
end

test do

Check failure on line 18 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose ente-cli` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 18 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew test --verbose ente-cli` failed on macOS Sequoia (15) on Apple Silicon!

==> Testing ente-cli ==> /opt/homebrew/Cellar/ente-cli/0.2.2/bin/ente version 2>&1 Killing child processes... ::error::ente-cli: failed An exception occurred within a child process: Timeout::Error: execution expired /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:43:in `rescue in handle_timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:40:in `handle_timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 18 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew test --verbose ente-cli` failed on macOS Sonoma (14) on Apple Silicon!

==> Testing ente-cli ==> /opt/homebrew/Cellar/ente-cli/0.2.2/bin/ente version 2>&1 Killing child processes... ::error::ente-cli: failed An exception occurred within a child process: Timeout::Error: execution expired /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:43:in `rescue in handle_timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:40:in `handle_timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 18 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew test --verbose ente-cli` failed on macOS Ventura (13) on Apple Silicon!

==> Testing ente-cli ==> /opt/homebrew/Cellar/ente-cli/0.2.2/bin/ente version 2>&1 Killing child processes... ::error::ente-cli: failed An exception occurred within a child process: Timeout::Error: execution expired /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:43:in `rescue in handle_timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:40:in `handle_timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 18 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew test --verbose ente-cli` failed on macOS Ventura (13)!

==> Testing ente-cli ==> /usr/local/Cellar/ente-cli/0.2.2/bin/ente version 2>&1 Killing child processes... ::error::ente-cli: failed An exception occurred within a child process: Timeout::Error: execution expired /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:43:in `rescue in handle_timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:40:in `handle_timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:54:in `<main>'

Check failure on line 18 in Formula/e/ente-cli.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew test --verbose ente-cli` failed on macOS Sonoma (14)!

==> Testing ente-cli ==> /usr/local/Cellar/ente-cli/0.2.2/bin/ente version 2>&1 Killing child processes... ::error::ente-cli: failed An exception occurred within a child process: Timeout::Error: execution expired /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:43:in `rescue in handle_timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:40:in `handle_timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:54:in `<main>'
output = shell_output("#{bin}/ente version 2>&1")
assert_match "Version #{version}", output
end
end

0 comments on commit 71160dc

Please sign in to comment.