Skip to content

Commit

Permalink
update to v0.6.9-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
verdverm committed Sep 18, 2023
1 parent 0c84d23 commit 94aa31c
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 51 deletions.
6 changes: 3 additions & 3 deletions hof.cue
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import "strings"

name: "hof"
version: tag
tag: "v0.6.8"
commit: "112659fe982a3efbe0acdb151c659e0b8b2e081f"
desc: "CUE powered data modeling & code generation system"
tag: "v0.6.9-beta.1"
commit: "ce1c0229d97735bc716f9384e676eb680bc460e1"
desc: "CUE powered developer tools & framework"
homepage: "https://hofstadter.io/"
repo: "github.com/hofstadter-io/hof"
url: "https://\(repo).git"
Expand Down
88 changes: 40 additions & 48 deletions hof.rb
Original file line number Diff line number Diff line change
@@ -1,54 +1,46 @@
# typed: false
# frozen_string_literal: true

# This file was generated by GoReleaser. DO NOT EDIT.
class Hof < Formula
desc "CUE powered schemas, code gen, data modeling, dag engine, and tui."
homepage "https://github.com/hofstadter-io/hof"
version "0.6.9-alpha.6"
desc "CUE powered developer tools & framework"
homepage "https://hofstadter.io/"
version "v0.6.9-beta.1"
url "https://github.com/hofstadter-io/hof.git",
tag: "v0.6.9-beta.1",
revision: "ce1c0229d97735bc716f9384e676eb680bc460e1"
license "Apache-2"

depends_on "docker"

on_macos do
if Hardware::CPU.intel?
url "https://github.com/hofstadter-io/hof/releases/download/v0.6.9-alpha.6/hof_v0.6.9-alpha.6_darwin_amd64"
sha256 "a9394d0dcd9a95d74c82dba4dd4e76d53e470ff2401756107b4331cc4a166bff"

def install
bin.install "hof_v0.6.9-alpha.6_darwin_amd64" => "hof"
generate_completions_from_executable(bin / "hof", "completion")
end
end
if Hardware::CPU.arm?
url "https://github.com/hofstadter-io/hof/releases/download/v0.6.9-alpha.6/hof_v0.6.9-alpha.6_darwin_arm64"
sha256 "be0db87e0f49bbd9d52e6793d8abe5a9ab056b65e6acdb71b8f88a94450de9a8"

def install
bin.install "hof_v0.6.9-alpha.6_darwin_arm64" => "hof"
generate_completions_from_executable(bin / "hof", "completion")
end
end
head "https://github.com/hofstadter-io/hof.git", branch: "_dev"

depends_on "go" => :build
depends_on "docker" => :test

def install
arch = Hardware::CPU.intel? ? "amd64" : Hardware::CPU.arch.to_s
os = OS.kernel_name.downcase

ldflags = %W[
-s
-w
-X
github.com/hofstadter-io/hof/cmd/hof/verinfo.Version=#{version}
-X
github.com/hofstadter-io/hof/cmd/hof/verinfo.Commit=#{Utils.git_head}
-X
github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildDate=#{time.iso8601}
-X
github.com/hofstadter-io/hof/cmd/hof/verinfo.GoVersion=#{Formula["go"].version}
-X
github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildOS=#{os}
-X
github.com/hofstadter-io/hof/cmd/hof/verinfo.BuildArch=#{arch}
]

ENV["CGO_ENABLED"] = "0"
ENV["HOF_TELEMETRY_DISABLED"] = "1"
system "go", "build", *std_go_args(ldflags: ldflags), "./cmd/hof"

generate_completions_from_executable(bin / "hof", "completion")
end

on_linux do
if Hardware::CPU.intel?
url "https://github.com/hofstadter-io/hof/releases/download/v0.6.9-alpha.6/hof_v0.6.9-alpha.6_linux_amd64"
sha256 "6996554b2cf429752463980479bd191de72e623a361ad3ebc88a8c447e81038b"

def install
bin.install "hof_v0.6.9-alpha.6_linux_amd64" => "hof"
generate_completions_from_executable(bin / "hof", "completion")
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/hofstadter-io/hof/releases/download/v0.6.9-alpha.6/hof_v0.6.9-alpha.6_linux_arm64"
sha256 "6110cd2e26c954724bfb9f9bc32b3eab076de31d9e834d44f0ad59fe1773a101"

def install
bin.install "hof_v0.6.9-alpha.6_linux_arm64" => "hof"
generate_completions_from_executable(bin / "hof", "completion")
end
end
test do
ENV["HOF_TELEMETRY_DISABLED"] = "1"
assert_match "v#{version}", shell_output("#{bin}/hof version")
end
end

0 comments on commit 94aa31c

Please sign in to comment.