Skip to content

Commit

Permalink
Add build tags to internal SDK tools
Browse files Browse the repository at this point in the history
Adds the `deprecated` build tags to the awsmigrate.
Adds the `example` build tag to all examples.
Adds the `codegen` build tags to the SDK's code generate commands.
  • Loading branch information
jasdel committed Oct 7, 2016
1 parent c0d7d32 commit 5c15c41
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ gen-endpoints:
build:
@echo "go build SDK and vendor packages"
@go build ${SDK_ONLY_PKGS}
@go build -tags example ./example/...

unit: get-deps-tests build verify
@echo "go test SDK and vendor packages"
@go test -tags $(SDK_ONLY_PKGS)
@go test $(SDK_ONLY_PKGS)

unit-with-race-cover: get-deps-tests build verify
@echo "go test SDK and vendor packages"
@go test -tags -race -cpu=1,2,4 $(SDK_ONLY_PKGS)
@go test -race -cpu=1,2,4 $(SDK_ONLY_PKGS)

integration: get-deps-tests integ-custom smoke-tests performance

Expand Down
2 changes: 1 addition & 1 deletion awsmigrate/awsmigrate-renamer/gen/gen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.5
// +build go1.5,deprecated

package main

Expand Down
2 changes: 1 addition & 1 deletion awsmigrate/awsmigrate-renamer/rename/rename.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.5
// +build go1.5,deprecated

package rename

Expand Down
2 changes: 1 addition & 1 deletion awsmigrate/awsmigrate-renamer/rename/renames.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.5
// +build go1.5,deprecated

package rename

Expand Down
2 changes: 1 addition & 1 deletion awsmigrate/awsmigrate-renamer/renamer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build go1.5
// +build go1.5,deprecated

package main

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build example

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions example/service/cloudfront/signCookies/signCookies.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build example

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions example/service/ec2/filterInstances/filter_ec2_by_tag.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build example

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions example/service/s3/concatObjects/concatObjects.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build example

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions example/service/s3/listObjects/listObjects.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build example

package main

import (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build example

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions models/protocol_tests/generate.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build codegen

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions private/model/cli/api-info/api-info.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build codegen

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions private/model/cli/gen-api/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build codegen

// Command aws-gen-gocli parses a JSON description of an AWS API and generates a
// Go file containing a client for the API.
//
Expand Down
2 changes: 2 additions & 0 deletions private/model/cli/gen-endpoints/main.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build codegen

// Command aws-gen-goendpoints parses a JSON description of the AWS endpoint
// discovery logic and generates a Go file which returns an endpoint.
//
Expand Down

0 comments on commit 5c15c41

Please sign in to comment.