@@ -27,17 +27,7 @@ REQUIRED_GO_MAJOR_VERSION := 1
27
27
REQUIRED_GO_MINOR_VERSION := 21
28
28
GO_VERSION_VALIDATION_ERR_MSG := Golang version $(REQUIRED_GO_MAJOR_VERSION ) .$(REQUIRED_GO_MINOR_VERSION ) is required
29
29
30
- .PHONY : development provider build_sdks build_nodejs build_dotnet build_go build_python cleanup validate_go_version
31
-
32
- validate_go_version : # # Validates the installed version of go
33
- @if [ $( GO_MAJOR_VERSION) -ne $( REQUIRED_GO_MAJOR_VERSION) ]; then \
34
- echo ' $(GO_VERSION_VALIDATION_ERR_MSG)' ; \
35
- exit 1 ; \
36
- fi
37
- @if [ $( GO_MINOR_VERSION) -ne $( REQUIRED_GO_MINOR_VERSION) ]; then \
38
- echo ' $(GO_VERSION_VALIDATION_ERR_MSG)' ; \
39
- exit 1 ; \
40
- fi
30
+ .PHONY : development provider build_sdks build_nodejs build_dotnet build_go build_python cleanup
41
31
42
32
development :: install_plugins provider lint_provider build_sdks install_sdks cleanup # Build the provider & SDKs for a development environment
43
33
@@ -98,7 +88,6 @@ $(WORKING_DIR)/bin/$(JAVA_GEN)::
98
88
lint_provider :: provider # lint the provider code
99
89
cd provider && golangci-lint run -c ../.golangci.yml
100
90
101
-
102
91
cleanup :: # cleans up the temporary directory
103
92
rm -r $(WORKING_DIR ) /bin
104
93
rm -f provider/cmd/${PROVIDER} /schema.go
@@ -116,7 +105,7 @@ fmt::
116
105
@echo " Fixing source code with gofmt..."
117
106
find . -name ' *.go' | grep -v vendor | xargs gofmt -s -w
118
107
119
- install_plugins :: validate_go_version
108
+ install_plugins ::
120
109
[ -x $( shell which pulumi) ] || curl -fsSL https://get.pulumi.com | sh
121
110
pulumi plugin install resource random 4.3.1
122
111
0 commit comments