https://pulumi.com logo
#office-hours
Title
# office-hours
w

wonderful-zoo-8760

04/10/2020, 7:27 PM
once we have the forked akamai provider and after I finished the pulumi-akamai code, is there a process to submit the provider to the official pulumi org?
b

broad-dog-22463

04/10/2020, 7:27 PM
You can work with me on that 🙂
🍺 1
w

wonderful-zoo-8760

04/10/2020, 7:28 PM
cool
b

broad-dog-22463

04/10/2020, 7:30 PM
ok, upgrade done
can you show me your go.mod?
w

wonderful-zoo-8760

04/10/2020, 7:30 PM
wow that’s fast
b

broad-dog-22463

04/10/2020, 7:33 PM
change the require to these
Copy code
<http://github.com/pulumi/pulumi|github.com/pulumi/pulumi> v1.13.1
	<http://github.com/pulumi/pulumi-terraform-bridge|github.com/pulumi/pulumi-terraform-bridge> v1.8.4
	<http://github.com/terraform-providers/terraform-provider-akamai|github.com/terraform-providers/terraform-provider-akamai> v0.5.0
then add this to the replace
that should then allow you to build the correct code
and it will bring in the other deps you need
w

wonderful-zoo-8760

04/10/2020, 7:56 PM
getting error:
Copy code
resources.go:23:2: module <http://github.com/pulumi/pulumi/pkg@latest|github.com/pulumi/pulumi/pkg@latest> found (v1.14.0), but does not contain package <http://github.com/pulumi/pulumi/pkg/resource|github.com/pulumi/pulumi/pkg/resource>
resources.go:24:2: module <http://github.com/pulumi/pulumi/pkg@latest|github.com/pulumi/pulumi/pkg@latest> found (v1.14.0), but does not contain package <http://github.com/pulumi/pulumi/pkg/tokens|github.com/pulumi/pulumi/pkg/tokens>
b

broad-dog-22463

04/10/2020, 7:58 PM
ok, actually, can you change the pulumi version to v1.12.1
1.13.0 brought in new modules
w

wonderful-zoo-8760

04/10/2020, 8:03 PM
Copy code
go install -ldflags "-X <http://github.com/pulumi/pulumi-akamai/pkg/version.Version=v0.0.1-dev.1586548645+gede600c.dirty|github.com/pulumi/pulumi-akamai/pkg/version.Version=v0.0.1-dev.1586548645+gede600c.dirty>" <http://github.com/pulumi/pulumi-akamai/cmd/pulumi-tfgen-akamai|github.com/pulumi/pulumi-akamai/cmd/pulumi-tfgen-akamai>
build <http://github.com/pulumi/pulumi-akamai/cmd/pulumi-tfgen-akamai|github.com/pulumi/pulumi-akamai/cmd/pulumi-tfgen-akamai>: cannot load <http://github.com/pulumi/pulumi/pkg/codegen/go|github.com/pulumi/pulumi/pkg/codegen/go>: ambiguous import: found <http://github.com/pulumi/pulumi/pkg/codegen/go|github.com/pulumi/pulumi/pkg/codegen/go> in multiple modules:
	<http://github.com/pulumi/pulumi|github.com/pulumi/pulumi> v1.12.1 (/Users/yliu/go/pkg/mod/github.com/pulumi/pulumi@v1.12.1/pkg/codegen/go)
	<http://github.com/pulumi/pulumi/pkg|github.com/pulumi/pulumi/pkg> v0.0.0-20200325225746-80f1989600a3 (/Users/yliu/go/pkg/mod/github.com/pulumi/pulumi/pkg@v0.0.0-20200325225746-80f1989600a3/codegen/go)
make: *** [tfgen] Error 1
b

broad-dog-22463

04/10/2020, 8:03 PM
you will need to run a make ensure again I believe
it seems to have got some weird imports here
w

wonderful-zoo-8760

04/10/2020, 8:05 PM
getting some other import errors after
make ensure
, I will take another look later today, should be easy to resolve
thx for the help!
b

broad-dog-22463

04/10/2020, 8:07 PM
if you can push it to your repo and link me, I can have a look and send a PR
thank you
b

broad-dog-22463

04/10/2020, 8:13 PM
👍
I will look into it
4 Views