pulumi: build from git checkout so version is correct

When built using the source provided tarballs from upstream, the
embedded version number in the binary is incorrect, since it based on
git tags, which are not present in the source tarball, leading to
`pulumi version` to report 0.0.0 instead of `0.16.11`

Closes #36162.

Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
Matt Ellis 2019-01-18 10:46:10 -08:00 committed by Sean Molenaar
parent 5a553e810b
commit af4da4319d
No known key found for this signature in database
GPG key ID: 6BF5D8DF0D34FAAE

View file

@ -1,9 +1,10 @@
class Pulumi < Formula
desc "Cloud native development platform"
homepage "https://pulumi.io/"
url "https://github.com/pulumi/pulumi/archive/v0.16.11.tar.gz"
sha256 "98c0bcc8bedc90a6ad55de0d70a8dfbdbe0f14a5cfb4998fb055d965ddab8257"
head "https://github.com/pulumi/pulumi.git"
url "https://github.com/pulumi/pulumi.git",
:tag => "v0.16.11",
:revision => "378bae27d83e649e482beed8fe33be20bd3c7805"
revision 1
bottle do
cellar :any_skip_relocation