alert-restaurant-79151
05/20/2020, 8:19 AMfuture-barista-68134
05/20/2020, 12:45 PMalert-restaurant-79151
05/20/2020, 12:49 PMscripts/get-py-version.go:7:2: cannot find module providing package <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil|github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil>: working directory is not part of a module
as part of the output when I run it following the instructions.kalium@nix> make prepare NAME=terraform-provider-nix REPOSITORY=<http://github.com/andrewchambers/terraform-provider-nix|github.com/andrewchambers/terraform-provider-nix>
scripts/get-py-version.go:7:2: cannot find module providing package <http://github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil|github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil>: working directory is not part of a module
mv "provider/cmd/pulumi-tfgen-x""yz" provider/cmd/pulumi-tfgen-terraform-provider-nix
mv "provider/cmd/pulumi-resource-x""yz" provider/cmd/pulumi-resource-terraform-provider-nix
if [[ "Linux" != "Darwin" ]]; then \
sed -i 's,<http://github.com/pulumi/pulumi-xyz,github.com/andrewchambers/terraform-provider-nix,g|github.com/pulumi/pulumi-xyz,github.com/andrewchambers/terraform-provider-nix,g>' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i 's/[x]yz/terraform-provider-nix/g' {} \; &> /dev/null; \
fi
# In MacOS the -i parameter needs an empty string to execute in place.
if [[ "Linux" == "Darwin" ]]; then \
sed -i '' 's,<http://github.com/pulumi/pulumi-xyz,github.com/andrewchambers/terraform-provider-nix,g|github.com/pulumi/pulumi-xyz,github.com/andrewchambers/terraform-provider-nix,g>' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i '' 's/[x]yz/terraform-provider-nix/g' {} \; &> /dev/null; \
fi
future-barista-68134
05/20/2020, 1:00 PMbroad-dog-22463
05/20/2020, 1:02 PMalert-restaurant-79151
05/20/2020, 1:05 PMbroad-dog-22463
05/20/2020, 1:57 PMbillowy-army-68599
05/20/2020, 3:18 PMgo 1.14
?alert-restaurant-79151
05/20/2020, 3:39 PMbillowy-army-68599
05/20/2020, 3:46 PMget-py-version
script requires go1.13.x
at the moment, you can patch the Makefile by changing the PYPI_VERSION
like so
PYPI_VERSION := $(shell (cd scripts && ./get-py-version))
alert-restaurant-79151
05/20/2020, 3:49 PM