fix(pulumi)

closes #3551
This commit is contained in:
Jacob Heider 2023-10-06 17:18:26 -04:00
parent 929758b320
commit 7076663a24
No known key found for this signature in database
GPG key ID: 51E3FD0EE62677B6

View file

@ -15,20 +15,23 @@ dependencies:
build: build:
dependencies: dependencies:
go.dev: '*' go.dev: '*'
script: | script:
pushd sdk - run: go mod download
go mod download working-directory: sdk
popd
pushd pkg - run: go mod download
go mod download working-directory: pkg
popd
make build - run: |
make install sed -i.bak -e 's/-ldflags "/-ldflags "-buildmode=pie /g' Makefile
rm Makefile.bak
if: linux
mkdir -p {{prefix}}/bin - make build
mv build/bin/pulumi* {{prefix}}/bin/ - make install
- mkdir -p {{prefix}}/bin
- mv build/bin/pulumi* {{prefix}}/bin/
# Install shell completions # Install shell completions
# TODO: Doesn't work for zsh. Should it be left up to user? # TODO: Doesn't work for zsh. Should it be left up to user?