Skip to content

Commit 930e5b6

Browse files
committed
SUMO-0: fixing makefile for terraform v0.13+
1 parent 1ef6484 commit 930e5b6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
BUG FIXES:
44

55
* is_active is now required in sumologic_user, doc fixes
6+
* monitor doc fixes and improvements
67

78
## 2.6.3 (January 15, 2021)
89

GNUmakefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ TEST?=$$(go list ./... |grep -v 'vendor')
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
33
WEBSITE_REPO=github.com/hashicorp/terraform-website
44
PKG_NAME=sumologic
5+
DEV_VERSION_NUMBER=2.7.1
56
PLUGIN_DIR=~/.terraform.d/plugins
7+
# PLUGIN_DIR_V13=~/.terraform.d/plugins/registry.terraform.io/sumologic/sumologic
8+
PLUGIN_DIR_V13=~/.terraform.d/providers/registry.terraform.io/sumologic/sumologic
9+
PLUGIN_DIR_SUFFIX=$(DEV_VERSION_NUMBER)/darwin_amd64
610

711
default: build
812

@@ -17,8 +21,14 @@ install: fmtcheck
1721
mkdir -vp $(PLUGIN_DIR)
1822
go build -o $(PLUGIN_DIR)/terraform-provider-sumologic
1923

24+
# separate command for installing in the right directory for terraform v0.13+
25+
install-v13: fmtcheck
26+
mkdir -vp $(PLUGIN_DIR)
27+
go build -o $(PLUGIN_DIR_V13)/$(PLUGIN_DIR_SUFFIX)/terraform-provider-sumologic
28+
2029
uninstall:
2130
@rm -vf $(PLUGIN_DIR)/terraform-provider-sumologic
31+
@rm -vf $(PLUGIN_DIR_V13)/$(PLUGIN_DIR_SUFFIX)/terraform-provider-sumologic
2232

2333
errcheck:
2434
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"

0 commit comments

Comments
 (0)