mirror of https://github.com/hashicorp/terraform
It seems that all of the tools we run here are now sufficiently modules-aware to run without problems in modules mode, and indeed running _not_ in modules mode was causing problems with locating packages in mockgen.pull/20239/head
parent
5946fd898e
commit
a9274beaca
@ -1,3 +1,3 @@
|
||||
//go:generate mockgen -destination mock.go github.com/hashicorp/terraform/internal/tfplugin5 ProviderClient,ProvisionerClient,Provisioner_ProvisionResourceClient,Provisioner_ProvisionResourceServer
|
||||
//go:generate bash ./generate.sh
|
||||
|
||||
package mock_tfplugin5
|
||||
|
||||
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# mockgen is particularly sensitive about what mode we run it in
|
||||
export GOFLAGS=""
|
||||
export GO111MODULE=on
|
||||
|
||||
mockgen -destination mock.go github.com/hashicorp/terraform/internal/tfplugin5 ProviderClient,ProvisionerClient,Provisioner_ProvisionResourceClient,Provisioner_ProvisionResourceServer
|
||||
Loading…
Reference in new issue