Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh-git-prompt: need zsh for linux #171586

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Formula/z/zsh-git-prompt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
sha256 cellar: :any_skip_relocation, all: "d4fa3836434d56704bd03f88f3e45557cac6e12cb6e17cc251635ecdcbc431eb"
end

uses_from_macos "zsh"

def install
prefix.install Dir["*.{sh,py}"]
end
Expand All @@ -20,9 +22,11 @@
EOS
end

test do

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose zsh-git-prompt` failed on Linux!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /tmp/zsh-git-prompt-test-20240513-9061-dx7n7g/.git/ ==> zsh -c '. /home/linuxbrew/.linuxbrew/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed ::error::zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:75:in `run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:50:in `<main>'

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew test --verbose zsh-git-prompt` failed on macOS Sonoma (14) on Apple Silicon!

/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /private/tmp/zsh-git-prompt-test-20240513-6794-7hln7j/.git/ ==> zsh -c '. /opt/homebrew/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed ::error::zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /opt/homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /opt/homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /opt/homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /opt/homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /opt/homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run' /opt/homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /opt/homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /opt/homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:50:in `<main>'

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew test --verbose zsh-git-prompt` failed on macOS Ventura (13) on Apple Silicon!

/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /private/tmp/zsh-git-prompt-test-20240513-6712-nzlxpi/.git/ ==> zsh -c '. /opt/homebrew/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed ::error::zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /opt/homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /opt/homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /opt/homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /opt/homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /opt/homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run' /opt/homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /opt/homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /opt/homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:50:in `<main>'

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

`brew test --verbose zsh-git-prompt` failed on macOS Monterey (12) on Apple Silicon!

/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /private/tmp/zsh-git-prompt-test-20240513-6372-nchrfk/.git/ ==> zsh -c '. /opt/homebrew/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed ::error::zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /opt/homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /opt/homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /opt/homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /opt/homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /opt/homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run' /opt/homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /opt/homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /opt/homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:50:in `<main>'

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / macOS 12-x86_64

`brew test --verbose zsh-git-prompt` failed on macOS Monterey (12)!

/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /private/tmp/zsh-git-prompt-test-20240513-6976-z50z9j/.git/ ==> zsh -c '. /usr/local/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed ::error::zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /usr/local/Homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `run' /usr/local/Homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:50:in `<main>'

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew test --verbose zsh-git-prompt` failed on macOS Sonoma (14)!

/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /private/tmp/zsh-git-prompt-test-20240514-7479-e7zs27/.git/ ==> zsh -c '. /usr/local/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /usr/local/Homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `run' /usr/local/Homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:50:in `<main>' ::error::zsh-git-prompt: failed

Check failure on line 25 in Formula/z/zsh-git-prompt.rb

View workflow job for this annotation

GitHub Actions / macOS 13-x86_64

`brew test --verbose zsh-git-prompt` failed on macOS Ventura (13)!

/usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing zsh-git-prompt ==> git init --initial-branch=main Initialized empty Git repository in /private/tmp/zsh-git-prompt-test-20240514-7392-j4w03z/.git/ ==> zsh -c '. /usr/local/opt/zsh-git-prompt/zshrc.sh && git_super_status' Error: zsh-git-prompt: failed An exception occurred within a child process: Minitest::Assertion: Expected /main/ to match "". /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:183:in `assert' /usr/local/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/minitest-5.22.3/lib/minitest/assertions.rb:297:in `assert_match' /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/z/zsh-git-prompt.rb:31:in `block in <class:ZshGitPrompt>' /usr/local/Homebrew/Library/Homebrew/formula.rb:2782:in `block (3 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/extend/kernel.rb:529:in `with_env' /usr/local/Homebrew/Library/Homebrew/formula.rb:2781:in `block (2 levels) in run_test' /usr/local/Homebrew/Library/Homebrew/formula.rb:1189:in `with_logging' /usr/local/Homebrew/Library/Homebrew/formula.rb:2780:in `block in run_test' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /usr/local/Homebrew/Library/Homebrew/mktemp.rb:75:in `run' /usr/local/Homebrew/Library/Homebrew/formula.rb:3091:in `mktemp' /usr/local/Homebrew/Library/Homebrew/formula.rb:2774:in `run_test' /usr/local/Homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /usr/local/Homebrew/Library/Homebrew/test.rb:50:in `<main>' ::error::zsh-git-prompt: failed
system "git", "init"
ENV["TERM"] = "xterm"

system "git", "init", "--initial-branch=main"
zsh_command = ". #{opt_prefix}/zshrc.sh && git_super_status"
assert_match "master", shell_output("zsh -c '#{zsh_command}'")
assert_match "main", shell_output("zsh -c '#{zsh_command}'")
end
end
Loading