sparse-intern-71089
07/08/2021, 11:44 PMbillowy-army-68599
bored-monitor-99026
07/09/2021, 12:06 AMmake prepare
in `bash`:
$ echo $0
/usr/bin/bash
$ make prepare NAME=oneandone REPOSITORY=<http://github.com/pulumi/pulumi-oneandone|github.com/pulumi/pulumi-oneandone>
mv "provider/cmd/pulumi-tfgen-x""yz" provider/cmd/pulumi-tfgen-oneandone
mv "provider/cmd/pulumi-resource-x""yz" provider/cmd/pulumi-resource-oneandone
if [[ "Linux" != "Darwin" ]]; then \
sed -i 's,<http://github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-oneandone,g|github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-oneandone,g>' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i 's/[x]yz/oneandone/g' {} \; &> /dev/null; \
fi
/bin/sh: 1: [[: not found
# 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/pulumi/pulumi-oneandone,g|github.com/pulumi/pulumi-xyz,github.com/pulumi/pulumi-oneandone,g>' provider/go.mod; \
find ./ ! -path './.git/*' -type f -exec sed -i '' 's/[x]yz/oneandone/g' {} \; &> /dev/null; \
fi
/bin/sh: 1: [[: not found
i know the error message says it ran in sh
not bash
but how...
i am using wsl2 (not sure this matters)bored-monitor-99026
07/09/2021, 6:00 AMpulumi-rke
in this resource.go
you map each resource, but i wonder how do we find the name mapped to: i.e. servicesEtcdDeprecated
herebillowy-army-68599
bored-monitor-99026
07/09/2021, 10:55 PM