Skip to content

Commit

Permalink
pixi: set version env variable
Browse files Browse the repository at this point in the history
pixi: update build

Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
pavelzw authored and chenrui333 committed Oct 31, 2024
1 parent 085eb87 commit 78db3b9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Formula/p/pixi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ class Pixi < Formula
end

def install
if build.head?
ENV["PIXI_VERSION"] = Utils.safe_popen_read("git", "describe", "--tags").chomp.delete_prefix("v")
end

ENV["PIXI_SELF_UPDATE_DISABLED_MESSAGE"] = <<~EOS
`self-update` has been disabled for this build.
Run `brew upgrade pixi` instead.
Expand Down

0 comments on commit 78db3b9

Please sign in to comment.