Skip to content

Commit e94a87c

Browse files
runme: update build and head to use correct org
Runme is now part of the CNCF sandbox. This will fix the commit hash and version number in the Go build. Also update the test to ensure that the version is reported correctly. Signed-off-by: Sebastian (Tiedtke) Huckleberry <[email protected]> Co-authored-by: Nanda H Krishna <[email protected]>
1 parent aa70880 commit e94a87c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Formula/r/runme.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Runme < Formula
44
url "https://github.com/runmedev/runme/archive/refs/tags/v3.12.7.tar.gz"
55
sha256 "26fa831b2848d75de42f9f48cfbe3c15ee6624336dc747cd3c52763bb76d3f35"
66
license "Apache-2.0"
7-
head "https://github.com/stateful/runme.git", branch: "main"
7+
head "https://github.com/runmedev/runme.git", branch: "main"
88

99
bottle do
1010
sha256 cellar: :any_skip_relocation, arm64_sequoia: "d9077a299edd0efa813c60bc0828d6040f79ab4517c35445b96cff919e5f8bcf"
@@ -20,17 +20,17 @@ class Runme < Formula
2020
def install
2121
ldflags = %W[
2222
-s -w
23-
-X github.com/stateful/runme/v3/internal/version.BuildDate=#{time.iso8601}
24-
-X github.com/stateful/runme/v3/internal/version.BuildVersion=#{version}
25-
-X github.com/stateful/runme/v3/internal/version.Commit=#{tap.user}
23+
-X github.com/runmedev/runme/v3/internal/version.BuildDate=#{time.iso8601}
24+
-X github.com/runmedev/runme/v3/internal/version.BuildVersion=#{version}
25+
-X github.com/runmedev/runme/v3/internal/version.Commit=#{tap.user}
2626
]
2727

2828
system "go", "build", *std_go_args(ldflags:)
2929
generate_completions_from_executable(bin/"runme", "completion")
3030
end
3131

3232
test do
33-
system bin/"runme", "--version"
33+
assert_match version.to_s, shell_output("#{bin}/runme --version")
3434
markdown = (testpath/"README.md")
3535
markdown.write <<~MARKDOWN
3636
# Some Markdown

0 commit comments

Comments
 (0)