From d69b0bc0c6247ecdb4e8473eb988e35095b6b39d Mon Sep 17 00:00:00 2001 From: Zhenhua Li Date: Fri, 13 Dec 2024 14:01:16 -0800 Subject: [PATCH] feat: add v6 module (#3211) --- Makefile | 8 ++++++-- v6/go.mod | 3 +++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 v6/go.mod diff --git a/Makefile b/Makefile index 924ebc08b..40261722c 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,18 @@ -build_dir=./bin +build_dir=bin TF_CONFIG_FILE=tf-dev-override.tfrc build: - GO111MODULE=on go build -o ${build_dir}/tfplan2cai ./cmd/tfplan2cai + GO111MODULE=on go build -o ./${build_dir}/tfplan2cai ./cmd/tfplan2cai + cd v6;\ + GO111MODULE=on go build -o ../${build_dir}/tgc . test: go version terraform --version ./config-tf-dev-override.sh TF_CLI_CONFIG_FILE="$${PWD}/${TF_CONFIG_FILE}" GO111MODULE=on go test -short ./... + cd v6;\ + TF_CLI_CONFIG_FILE="$${PWD}/${TF_CONFIG_FILE}" GO111MODULE=on go test -short ./... test-integration: go version diff --git a/v6/go.mod b/v6/go.mod new file mode 100644 index 000000000..fa5755f57 --- /dev/null +++ b/v6/go.mod @@ -0,0 +1,3 @@ +module github.com/GoogleCloudPlatform/terraform-google-conversion/v6 + +go 1.23