mirror of https://github.com/pulumi/pulumi.git
26 lines
727 B
Bash
Executable File
26 lines
727 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eo pipefail
|
|
set -x
|
|
|
|
PROJECT="$1"
|
|
BREW_VERSION=$(./scripts/get-version HEAD)
|
|
|
|
# Rebuild and install pulumi CLI binaries into $GOPATH/bin
|
|
(cd pkg && go install \
|
|
-ldflags "-X github.com/pulumi/pulumi/pkg/v3/version.Version=${BREW_VERSION}" \
|
|
${PROJECT})
|
|
|
|
# Fetch extra language binaries like YAML and Java from GitHub releases.
|
|
./scripts/prep-for-goreleaser.sh "local"
|
|
|
|
# Install these extra binaries into $GOPATH/bin
|
|
GOOS=$(go env GOOS)
|
|
GOARCH=$(go env GOARCH)
|
|
GOPATH=$(go env GOPATH)
|
|
# goreleaser in pulumi/pulumi renames amd64 to x64
|
|
RENAMED_ARCH="${GOARCH/amd64/x64}"
|
|
mkdir -p "$GOPATH/bin"
|
|
cp bin/${GOOS}-${RENAMED_ARCH}/* "$GOPATH/bin/"
|
|
cp bin/${GOOS}/* "$GOPATH/bin/"
|