mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
a9274beaca
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.
8 lines
303 B
Bash
8 lines
303 B
Bash
#!/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
|