sparse-intern-71089
05/01/2020, 7:30 PMlemon-agent-27707
05/01/2020, 7:59 PMgo.mod file in the provider directory?gray-yak-9058
05/01/2020, 8:19 PMprovider/vendor folder`github.com/pulumi/pulumi/sdk/v2/go/common/util/buildutil`. So that explains why when I run make it complains about not being able to find it.. but not sure why its not there. I've only dabbled in go, so i'm no expert on what might be happening theregray-yak-9058
05/01/2020, 8:21 PMbuildutil folder in the util folderbroad-dog-22463
05/01/2020, 8:29 PMbillowy-army-68599
billowy-army-68599
billowy-army-68599
$GOBIN to your GOPATHbroad-dog-22463
05/01/2020, 8:35 PMbillowy-army-68599
pulumi-tfgen-opsgenie schema --out ./provider/cmd/pulumi-resource-opsgeniebillowy-army-68599
go install but can't resolvebillowy-army-68599
which pulumi-tfgen-opsgeniegray-yak-9058
05/01/2020, 8:38 PMpulumi-tfgen-opsgenie not found when running that commandbillowy-army-68599
Makefile is doing two things, first it's installing your tfgen command like so
cd provider && go install -ldflags "-X <http://github.com/pulumi/pulumi-opsgenie/provider/pkg/version.Version=v0.0.1-alpha.1588074230+gca4ea26.dirty|github.com/pulumi/pulumi-opsgenie/provider/pkg/version.Version=v0.0.1-alpha.1588074230+gca4ea26.dirty>" <http://github.com/pulumi/pulumi-opsgenie/provider/cmd/pulumi-tfgen-opsgenie|github.com/pulumi/pulumi-opsgenie/provider/cmd/pulumi-tfgen-opsgenie>billowy-army-68599
$GOPATH/binbillowy-army-68599
$PATH, try doing PATH=$PATH:$GOPATH/bin makebillowy-army-68599
gray-yak-9058
05/01/2020, 8:51 PMgray-yak-9058
05/01/2020, 8:54 PMgray-yak-9058
05/01/2020, 8:54 PMprovider/resources.go?gray-yak-9058
05/01/2020, 9:05 PMResources property to
Resources: map[string]*tfbridge.ResourceInfo{
"opsgenie_user": {Tok: makeResource(mainMod, "User")},
},
and after running make again it looks like I have a User resource nowbillowy-army-68599
gray-yak-9058
05/01/2020, 9:08 PMbillowy-army-68599
broad-dog-22463
05/01/2020, 9:10 PMlemon-agent-27707
05/01/2020, 11:38 PMbillowy-army-68599
gray-yak-9058
05/07/2020, 1:56 PM➜ pulumi preview
Previewing update (dev):
Type Name Plan Info
+ pulumi:pulumi:Stack my-project-dev create
└─ pulumi:providers:opsgenie opsgenie 1 error
Diagnostics:
pulumi:providers:opsgenie (opsgenie):
error: no resource plugin 'opsgenie' found in the workspace or on your $PATH
Doing a quick google and I came across this github issue, would this be the fix for me? If so, I guess I need to version my opsgenie provider 🤔 https://github.com/pulumi/pulumi/issues/2571broad-dog-22463
05/07/2020, 1:57 PMbroad-dog-22463
05/07/2020, 1:57 PMbroad-dog-22463
05/07/2020, 1:57 PMgray-yak-9058
05/07/2020, 1:59 PMgray-yak-9058
05/07/2020, 2:00 PMmodule my-project
go 1.13
require (
<http://github.com/jacobscunn07/pulumi-opsgenie/sdk|github.com/jacobscunn07/pulumi-opsgenie/sdk> v0.0.0-20200505144548-ecdf0538b17f
<http://github.com/pulumi/pulumi/sdk/v2|github.com/pulumi/pulumi/sdk/v2> v2.0.0
)
not sure how that version was found/named, but this isn't enough to get it going if there are no tags in github currently?gray-yak-9058
05/07/2020, 2:13 PMPATH=$PATH:$GOPATH/bin pulumi preview and the preview completed without error. I'm still fairly new to golang, so not quite sure why $GOPATH/bin needs to be in $PATHbroad-dog-22463
05/07/2020, 2:51 PMgray-yak-9058
05/07/2020, 3:11 PMbroad-dog-22463
05/07/2020, 3:20 PMbroad-dog-22463
05/07/2020, 3:20 PM