Skip to content

Commit

Permalink
V2 Smithy Feature Branch Cleanup and Removal of Deprecated Code (aws#679
Browse files Browse the repository at this point in the history
)
  • Loading branch information
skmcgrail committed Sep 24, 2020
1 parent c09afe1 commit e69fe40
Show file tree
Hide file tree
Showing 2,541 changed files with 6,580 additions and 1,199,257 deletions.
33 changes: 6 additions & 27 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,61 +8,41 @@ LINTIGNOREDEPS='vendor/.+\.go'
LINTIGNOREPKGCOMMENT='service/[^/]+/doc_custom.go:.+package comment should be of the form'
LINTIGNOREENDPOINTS='aws/endpoints/defaults.go:.+(method|const) .+ should be '
LINTIGNORESINGLEFIGHT='internal/sync/singleflight/singleflight.go:.+error should be the last type'
LINTIGNOREPROTO="service/smithyprototype/.+\.go:.+don't use underscores in Go names"
UNIT_TEST_TAGS="example codegen awsinclude"
ALL_TAGS="example codegen awsinclude integration perftest sdktool"

# SDK's Core and client packages that are compatable with Go 1.9+.
SDK_CORE_PKGS=./aws/... ./private/... ./internal/...
SDK_CORE_PKGS=./aws/... ./internal/...
SDK_CLIENT_PKGS=./service/...
SDK_COMPA_PKGS=${SDK_CORE_PKGS} ${SDK_CLIENT_PKGS}

# SDK additional packages that are used for development of the SDK.
SDK_EXAMPLES_PKGS=./example/...
SDK_MODELS_PKGS=./models/...
SDK_ALL_PKGS=${SDK_COMPA_PKGS} ${SDK_EXAMPLES_PKGS} ${SDK_MODELS_PKGS}
SDK_ALL_PKGS=${SDK_COMPA_PKGS} ${SDK_EXAMPLES_PKGS}


all: generate unit

###################
# Code Generation #
###################
generate: cleanup-models gen-test gen-endpoints gen-services gen-external-asserts
generate: gen-services gen-external-asserts

smithy-generate:
cd codegen && ./gradlew clean build -Plog-tests

gen-test: gen-protocol-test gen-codegen-test

#gen-codegen-test:
# @echo "Generating SDK API tests"
# go generate ./private/model/api/codegentest/service

gen-services:
@echo "Generating SDK clients"
go generate ./service

gen-protocol-test:
@echo "Generating SDK protocol tests"
go generate ./private/protocol/...

gen-endpoints:
@echo "Generating SDK endpoints"
go generate ./models/endpoints

gen-codegen-test:
@echo "Generating SDK API tests"
go generate ./private/model/api/codegentest/service
@echo "TODO: Wire Up Smithy Client Generation"
#go generate ./service

gen-external-asserts:
@echo "Generating SDK external package implementor assertions"
go generate ./aws/external

cleanup-models:
@echo "Cleaning up stale model versions"
@./cleanup_models.sh

###################
# Unit/CI Testing #
###################
Expand Down Expand Up @@ -161,8 +141,7 @@ lint:
-e ${LINTIGNOREINFLECTS3UPLOAD} \
-e ${LINTIGNOREPKGCOMMENT} \
-e ${LINTIGNOREENDPOINTS} \
-e ${LINTIGNORESINGLEFIGHT} \
-e ${LINTIGNOREPROTO}`; \
-e ${LINTIGNORESINGLEFIGHT}`; \
echo "$$dolint"; \
if [ "$$dolint" != "" ]; then exit 1; fi

Expand Down
117 changes: 0 additions & 117 deletions aws/awserr/error.go

This file was deleted.

201 changes: 0 additions & 201 deletions aws/awserr/types.go

This file was deleted.

Loading

0 comments on commit e69fe40

Please sign in to comment.