extract: Leave a hint in place of the removed bottles block #28280
tests.yml
on: pull_request
syntax
46s
tap syntax
4m 57s
formula audit
6m 27s
cask audit
2m 41s
vendored gems
41s
docker
6m 50s
Matrix: test-default-formula
Matrix: tests
Matrix: update-test
Annotations
13 errors
tests (macOS 14 arm64):
opt/homebrew/Library/Homebrew/test/dev-cmd/extract_spec.rb#L67
Homebrew::DevCmd::Extract when extracting a formula notes the url where bottles might be found
Failure/Error: expect(File.read(path)).to match(%r{docker://ghcr.io/homebrew/core/testball:0.2})
expected "class TestballAT02 < Formula\n desc \"Some test\"\n homepage \"https://brew.sh/testball\"\n url \"file:///opt/homebrew/Library/Homebrew/test/support/fixtures/tarballs/testball-0.2.tbz\"\n sha256 \"91e3f7930c98d7ccfb288e115ed52d06b0e5bc16fec7dce8bdda86530027067b\"\n\n option \"with-foo\", \"Build with foo\"\n\n def install\n (prefix/\"foo\"/\"test\").write(\"test\") if build.with? \"foo\"\n prefix.install Dir[\"*\"]\n (buildpath/\"test.c\").write \"#include <stdio.h>\\nint main(){printf(\\\"test\\\");return 0;}\"\n bin.mkpath\n system ENV.cc, \"test.c\", \"-o\", bin/\"test\"\n end\n\n\n\n # something here\n\nend\n" to match /docker:\/\/ghcr.io\/homebrew\/core\/testball:0.2/
Diff:
@@ -1,21 +1,41 @@
-/docker:\/\/ghcr.io\/homebrew\/core\/testball:0.2/
+class TestballAT02 < Formula
+ desc "Some test"
+ homepage "https://brew.sh/testball"
+ url "file:///opt/homebrew/Library/Homebrew/test/support/fixtures/tarballs/testball-0.2.tbz"
+ sha256 "91e3f7930c98d7ccfb288e115ed52d06b0e5bc16fec7dce8bdda86530027067b"
+
+ option "with-foo", "Build with foo"
+
+ def install
+ (prefix/"foo"/"test").write("test") if build.with? "foo"
+ prefix.install Dir["*"]
+ (buildpath/"test.c").write "#include <stdio.h>\nint main(){printf(\"test\");return 0;}"
+ bin.mkpath
+ system ENV.cc, "test.c", "-o", bin/"test"
+ end
+
+
+
+ # something here
+
+end
|
tests (macOS 14 arm64):
opt/homebrew/Library/Homebrew/test/dev-cmd/extract_spec.rb#L47
Homebrew::DevCmd::Extract when extracting a formula retrieves the specified version of formula
Failure/Error: expect(Formulary.factory(path).version).to eq "0.1"
FormulaUnreadableError:
[email protected]: /private/tmp/homebrew-tests-20240629-7452-p5l46z/prefix/Library/Taps/homebrew/homebrew-foo/Formula/[email protected]:21: syntax error, unexpected `end'
|
tests (macOS 14 arm64)
Process completed with exit code 1.
|
tests (generic OS)
The job was canceled because "tests__macOS_14_arm64__--" failed.
|
tests (generic OS)
The operation was canceled.
|
tests (Ubuntu 22.04)
The job was canceled because "tests__macOS_14_arm64__--" failed.
|
tests (Ubuntu 22.04)
The operation was canceled.
|
tests (online)
The job was canceled because "tests__macOS_14_arm64__--" failed.
|
tests (online)
The operation was canceled.
|
tests (Ubuntu 20.04)
The job was canceled because "tests__macOS_14_arm64__--" failed.
|
tests (Ubuntu 20.04)
The operation was canceled.
|
tests (macOS 13 x86_64)
The job was canceled because "tests__macOS_14_arm64__--" failed.
|
tests (macOS 13 x86_64)
The operation was canceled.
|