Skip to content

Commit

Permalink
Try 6, we have to be in right dir to build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Nov 15, 2024
1 parent 49ef7e6 commit 9aefddf
Showing 1 changed file with 33 additions and 27 deletions.
60 changes: 33 additions & 27 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,23 @@ brews:
ENV["GOBIN"] = buildpath
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
# Get the git commit SHA for versioning
git_hash = Utils.git_head
version = "HEAD-" + git_hash[0..7]
system "make", "VERSION=#{version}"
# Install the compiled binary
bin.install ".gotmp/bin/#{os}_#{arch}/ddev"
# Install completions
bash_completion.install ".gotmp/bin/completions/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/completions/ddev_zsh_completion.sh" => "_ddev"
fish_completion.install ".gotmp/bin/completions/ddev_fish_completion.sh" => "ddev.fish"
# Build in the git checkout directory
cd buildpath do
# Get the git commit SHA for versioning
git_hash = Utils.git_head
version = "HEAD-" + git_hash[0..7]
system "make", "VERSION=#{version}"
# Install the compiled binary
bin.install ".gotmp/bin/#{os}_#{arch}/ddev"
# Install completions
bash_completion.install ".gotmp/bin/completions/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/completions/ddev_zsh_completion.sh" => "_ddev"
fish_completion.install ".gotmp/bin/completions/ddev_fish_completion.sh" => "ddev.fish"
end
end
end
Expand Down Expand Up @@ -245,20 +248,23 @@ brews:
ENV["GOBIN"] = buildpath
os = OS.mac? ? "darwin" : "linux"
arch = Hardware::CPU.arm? ? "arm64" : "amd64"
# Build in the git checkout directory
cd buildpath do
# Get the git commit SHA for versioning
git_hash = Utils.git_head
version = "HEAD-" + git_hash[0..7]
system "make", "VERSION=#{version}"
# Get the git commit SHA for versioning
git_hash = Utils.git_head
version = "HEAD-" + git_hash[0..7]
system "make", "VERSION=#{version}"
# Install the compiled binary
bin.install ".gotmp/bin/#{os}_#{arch}/ddev"
# Install completions
bash_completion.install ".gotmp/bin/completions/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/completions/ddev_zsh_completion.sh" => "_ddev"
fish_completion.install ".gotmp/bin/completions/ddev_fish_completion.sh" => "ddev.fish"
# Install the compiled binary
bin.install ".gotmp/bin/#{os}_#{arch}/ddev"
# Install completions
bash_completion.install ".gotmp/bin/completions/ddev_bash_completion.sh" => "ddev"
zsh_completion.install ".gotmp/bin/completions/ddev_zsh_completion.sh" => "_ddev"
fish_completion.install ".gotmp/bin/completions/ddev_fish_completion.sh" => "ddev.fish"
end
end
end
Expand Down

0 comments on commit 9aefddf

Please sign in to comment.