From 7076663a24af78e38f1faeedd2d94806e8359af8 Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Fri, 6 Oct 2023 17:18:26 -0400 Subject: [PATCH] fix(pulumi) closes #3551 --- projects/pulumi.io/package.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/projects/pulumi.io/package.yml b/projects/pulumi.io/package.yml index 8c0d5b57..df2812f7 100644 --- a/projects/pulumi.io/package.yml +++ b/projects/pulumi.io/package.yml @@ -15,20 +15,23 @@ dependencies: build: dependencies: go.dev: '*' - script: | - pushd sdk - go mod download - popd + script: + - run: go mod download + working-directory: sdk - pushd pkg - go mod download - popd + - run: go mod download + working-directory: pkg - make build - make install + - run: | + sed -i.bak -e 's/-ldflags "/-ldflags "-buildmode=pie /g' Makefile + rm Makefile.bak + if: linux - mkdir -p {{prefix}}/bin - mv build/bin/pulumi* {{prefix}}/bin/ + - make build + - make install + + - mkdir -p {{prefix}}/bin + - mv build/bin/pulumi* {{prefix}}/bin/ # Install shell completions # TODO: Doesn't work for zsh. Should it be left up to user?