Skip to content

Commit

Permalink
go-blueprint 0.10.3 (new formula)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 committed Dec 16, 2024
1 parent a4c21d5 commit fbca75b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/autobump.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,7 @@ [email protected]
gnuplot
gnutls
go
go-blueprint
go-camo
go-critic
go-feature-flag-relay-proxy
Expand Down
28 changes: 28 additions & 0 deletions Formula/g/go-blueprint.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
class GoBlueprint < Formula
desc "CLI to streamline Go project setup with standardized structure"
homepage "https://docs.go-blueprint.dev/"
url "https://github.com/Melkeydev/go-blueprint/archive/refs/tags/v0.10.3.tar.gz"
sha256 "2bdceb5946f4b08cdd98e29e50404a48fc47967cb3ef0f0e66f8b5ec3b7e07e0"
license "MIT"
head "https://github.com/Melkeydev/go-blueprint.git", branch: "main"

depends_on "go"

def install
system "go", "build", *std_go_args(ldflags: "-s -w -X github.com/melkeydev/go-blueprint/cmd.GoBlueprintVersion=#{version}")

generate_completions_from_executable(bin/"go-blueprint", "completion")
end

test do

Check failure on line 17 in Formula/g/go-blueprint.rb

View workflow job for this annotation

GitHub Actions / Linux

`brew test --verbose go-blueprint` failed on Linux!

|____/|_|\__,_|\___| .__/|_| |_|_| |_|\__| | | |_| Error: open /dev/tty: no such device or address ::error::go-blueprint: failed An exception occurred within a child process: BuildError: Failed executing: /home/linuxbrew/.linuxbrew/Cellar/go-blueprint/0.10.3/bin/go-blueprint create --name brew.sh/test --framework gin --driver sqlite --git skip /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3159:in `block in system' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3095:in `open' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3095:in `system' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/call_validation.rb:278:in `bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/call_validation.rb:278:in `validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/g/go-blueprint.rb:25:in `block in <class:GoBlueprint>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2891:in `block (3 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/kernel.rb:539:in `with_env' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2890:in `block (2 levels) in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1215:in `with_logging' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2889:in `block in run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `block in run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `chdir' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/mktemp.rb:90:in `run' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/call_validation.rb:278:in `bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/call_validation.rb:278:in `validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:3218:in `mktemp' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/call_validation.rb:278:in `bind_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/call_validation.rb:278:in `validate_call' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.11694/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:2883:in `run_test' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:48:in `block in <main>' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:41:in `handle_timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/lib/ruby/3.3.0/timeout.rb:195:in `timeout' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:54:in `<main>'
assert_match version.to_s, shell_output("#{bin}/go-blueprint version")

module_name = "brew.sh/test"
system bin/"go-blueprint", "create", "--name", module_name,
"--framework", "gin", "--driver", "sqlite", "--git", "skip"

test_project = testpath/"test"
assert_path_exists test_project/"cmd/api/main.go"
assert_match "module #{module_name}", (test_project/"go.mod").read
end
end

0 comments on commit fbca75b

Please sign in to comment.