Signed-off-by: Jessica Frazelle <acidburn@docker.com>
| ... | ... |
@@ -1,11 +1,13 @@ |
| 1 | 1 |
#!/usr/bin/env bash |
| 2 | 2 |
|
| 3 |
+PROJECT=github.com/docker/docker |
|
| 4 |
+ |
|
| 3 | 5 |
# Downloads dependencies into vendor/ directory |
| 4 | 6 |
mkdir -p vendor |
| 5 | 7 |
|
| 6 | 8 |
rm -rf .gopath |
| 7 | 9 |
mkdir -p .gopath/src/github.com/docker |
| 8 |
-ln -sf ../../../.. .gopath/src/github.com/docker/docker |
|
| 10 |
+ln -sf ../../../.. .gopath/src/${PROJECT}
|
|
| 9 | 11 |
export GOPATH="${PWD}/.gopath:${PWD}/vendor"
|
| 10 | 12 |
|
| 11 | 13 |
clone() {
|
| ... | ... |
@@ -65,11 +67,10 @@ _dockerfile_env() {
|
| 65 | 65 |
|
| 66 | 66 |
clean() {
|
| 67 | 67 |
local packages=( |
| 68 |
- github.com/docker/docker/docker # package main |
|
| 69 |
- github.com/docker/docker/dockerinit # package main |
|
| 70 |
- github.com/docker/docker/integration-cli # external tests |
|
| 68 |
+ "${PROJECT}/docker" # package main
|
|
| 69 |
+ "${PROJECT}/dockerinit" # package main
|
|
| 70 |
+ "${PROJECT}/integration-cli" # external tests
|
|
| 71 | 71 |
) |
| 72 |
- |
|
| 73 | 72 |
local dockerPlatforms=( linux/amd64 $(_dockerfile_env DOCKER_CROSSPLATFORMS) ) |
| 74 | 73 |
local dockerBuildTags="$(_dockerfile_env DOCKER_BUILDTAGS)" |
| 75 | 74 |
local buildTagCombos=( |
| ... | ... |
@@ -87,14 +88,24 @@ clean() {
|
| 87 | 87 |
|
| 88 | 88 |
echo -n 'collecting import graph, ' |
| 89 | 89 |
local IFS=$'\n' |
| 90 |
+ packages+=( $( |
|
| 91 |
+ for platform in "${dockerPlatforms[@]}"; do
|
|
| 92 |
+ export GOOS="${platform%/*}";
|
|
| 93 |
+ export GOARCH="${platform##*/}";
|
|
| 94 |
+ for buildTags in "${buildTagCombos[@]}"; do
|
|
| 95 |
+ go list -e -tags "$buildTags" -f '{{join .Deps "\n"}}' "${packages[@]}"
|
|
| 96 |
+ done |
|
| 97 |
+ done | grep -E "^${PROJECT}" | grep -vE "^${PROJECT}/vendor" | sort -u
|
|
| 98 |
+ ) ) |
|
| 90 | 99 |
local imports=( $( |
| 91 | 100 |
for platform in "${dockerPlatforms[@]}"; do
|
| 92 | 101 |
export GOOS="${platform%/*}";
|
| 93 | 102 |
export GOARCH="${platform##*/}";
|
| 94 | 103 |
for buildTags in "${buildTagCombos[@]}"; do
|
| 95 | 104 |
go list -e -tags "$buildTags" -f '{{join .Deps "\n"}}' "${packages[@]}"
|
| 105 |
+ go list -e -tags "$buildTags" -f '{{join .TestImports "\n"}}' "${packages[@]}"
|
|
| 96 | 106 |
done |
| 97 |
- done | grep -vE '^github.com/docker/docker' | sort -u |
|
| 107 |
+ done | grep -vE '^${PROJECT}' | sort -u
|
|
| 98 | 108 |
) ) |
| 99 | 109 |
imports=( $(go list -e -f '{{if not .Standard}}{{.ImportPath}}{{end}}' "${imports[@]}") )
|
| 100 | 110 |
unset IFS |
| 101 | 111 |
deleted file mode 100644 |
| ... | ... |
@@ -1,108 +0,0 @@ |
| 1 |
-// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. |
|
| 2 |
- |
|
| 3 |
-// Package cloudwatchlogsiface provides an interface for the Amazon CloudWatch Logs. |
|
| 4 |
-package cloudwatchlogsiface |
|
| 5 |
- |
|
| 6 |
-import ( |
|
| 7 |
- "github.com/aws/aws-sdk-go/aws" |
|
| 8 |
- "github.com/aws/aws-sdk-go/service/cloudwatchlogs" |
|
| 9 |
-) |
|
| 10 |
- |
|
| 11 |
-// CloudWatchLogsAPI is the interface type for cloudwatchlogs.CloudWatchLogs. |
|
| 12 |
-type CloudWatchLogsAPI interface {
|
|
| 13 |
- CreateLogGroupRequest(*cloudwatchlogs.CreateLogGroupInput) (*aws.Request, *cloudwatchlogs.CreateLogGroupOutput) |
|
| 14 |
- |
|
| 15 |
- CreateLogGroup(*cloudwatchlogs.CreateLogGroupInput) (*cloudwatchlogs.CreateLogGroupOutput, error) |
|
| 16 |
- |
|
| 17 |
- CreateLogStreamRequest(*cloudwatchlogs.CreateLogStreamInput) (*aws.Request, *cloudwatchlogs.CreateLogStreamOutput) |
|
| 18 |
- |
|
| 19 |
- CreateLogStream(*cloudwatchlogs.CreateLogStreamInput) (*cloudwatchlogs.CreateLogStreamOutput, error) |
|
| 20 |
- |
|
| 21 |
- DeleteDestinationRequest(*cloudwatchlogs.DeleteDestinationInput) (*aws.Request, *cloudwatchlogs.DeleteDestinationOutput) |
|
| 22 |
- |
|
| 23 |
- DeleteDestination(*cloudwatchlogs.DeleteDestinationInput) (*cloudwatchlogs.DeleteDestinationOutput, error) |
|
| 24 |
- |
|
| 25 |
- DeleteLogGroupRequest(*cloudwatchlogs.DeleteLogGroupInput) (*aws.Request, *cloudwatchlogs.DeleteLogGroupOutput) |
|
| 26 |
- |
|
| 27 |
- DeleteLogGroup(*cloudwatchlogs.DeleteLogGroupInput) (*cloudwatchlogs.DeleteLogGroupOutput, error) |
|
| 28 |
- |
|
| 29 |
- DeleteLogStreamRequest(*cloudwatchlogs.DeleteLogStreamInput) (*aws.Request, *cloudwatchlogs.DeleteLogStreamOutput) |
|
| 30 |
- |
|
| 31 |
- DeleteLogStream(*cloudwatchlogs.DeleteLogStreamInput) (*cloudwatchlogs.DeleteLogStreamOutput, error) |
|
| 32 |
- |
|
| 33 |
- DeleteMetricFilterRequest(*cloudwatchlogs.DeleteMetricFilterInput) (*aws.Request, *cloudwatchlogs.DeleteMetricFilterOutput) |
|
| 34 |
- |
|
| 35 |
- DeleteMetricFilter(*cloudwatchlogs.DeleteMetricFilterInput) (*cloudwatchlogs.DeleteMetricFilterOutput, error) |
|
| 36 |
- |
|
| 37 |
- DeleteRetentionPolicyRequest(*cloudwatchlogs.DeleteRetentionPolicyInput) (*aws.Request, *cloudwatchlogs.DeleteRetentionPolicyOutput) |
|
| 38 |
- |
|
| 39 |
- DeleteRetentionPolicy(*cloudwatchlogs.DeleteRetentionPolicyInput) (*cloudwatchlogs.DeleteRetentionPolicyOutput, error) |
|
| 40 |
- |
|
| 41 |
- DeleteSubscriptionFilterRequest(*cloudwatchlogs.DeleteSubscriptionFilterInput) (*aws.Request, *cloudwatchlogs.DeleteSubscriptionFilterOutput) |
|
| 42 |
- |
|
| 43 |
- DeleteSubscriptionFilter(*cloudwatchlogs.DeleteSubscriptionFilterInput) (*cloudwatchlogs.DeleteSubscriptionFilterOutput, error) |
|
| 44 |
- |
|
| 45 |
- DescribeDestinationsRequest(*cloudwatchlogs.DescribeDestinationsInput) (*aws.Request, *cloudwatchlogs.DescribeDestinationsOutput) |
|
| 46 |
- |
|
| 47 |
- DescribeDestinations(*cloudwatchlogs.DescribeDestinationsInput) (*cloudwatchlogs.DescribeDestinationsOutput, error) |
|
| 48 |
- |
|
| 49 |
- DescribeLogGroupsRequest(*cloudwatchlogs.DescribeLogGroupsInput) (*aws.Request, *cloudwatchlogs.DescribeLogGroupsOutput) |
|
| 50 |
- |
|
| 51 |
- DescribeLogGroups(*cloudwatchlogs.DescribeLogGroupsInput) (*cloudwatchlogs.DescribeLogGroupsOutput, error) |
|
| 52 |
- |
|
| 53 |
- DescribeLogGroupsPages(*cloudwatchlogs.DescribeLogGroupsInput, func(*cloudwatchlogs.DescribeLogGroupsOutput, bool) bool) error |
|
| 54 |
- |
|
| 55 |
- DescribeLogStreamsRequest(*cloudwatchlogs.DescribeLogStreamsInput) (*aws.Request, *cloudwatchlogs.DescribeLogStreamsOutput) |
|
| 56 |
- |
|
| 57 |
- DescribeLogStreams(*cloudwatchlogs.DescribeLogStreamsInput) (*cloudwatchlogs.DescribeLogStreamsOutput, error) |
|
| 58 |
- |
|
| 59 |
- DescribeLogStreamsPages(*cloudwatchlogs.DescribeLogStreamsInput, func(*cloudwatchlogs.DescribeLogStreamsOutput, bool) bool) error |
|
| 60 |
- |
|
| 61 |
- DescribeMetricFiltersRequest(*cloudwatchlogs.DescribeMetricFiltersInput) (*aws.Request, *cloudwatchlogs.DescribeMetricFiltersOutput) |
|
| 62 |
- |
|
| 63 |
- DescribeMetricFilters(*cloudwatchlogs.DescribeMetricFiltersInput) (*cloudwatchlogs.DescribeMetricFiltersOutput, error) |
|
| 64 |
- |
|
| 65 |
- DescribeMetricFiltersPages(*cloudwatchlogs.DescribeMetricFiltersInput, func(*cloudwatchlogs.DescribeMetricFiltersOutput, bool) bool) error |
|
| 66 |
- |
|
| 67 |
- DescribeSubscriptionFiltersRequest(*cloudwatchlogs.DescribeSubscriptionFiltersInput) (*aws.Request, *cloudwatchlogs.DescribeSubscriptionFiltersOutput) |
|
| 68 |
- |
|
| 69 |
- DescribeSubscriptionFilters(*cloudwatchlogs.DescribeSubscriptionFiltersInput) (*cloudwatchlogs.DescribeSubscriptionFiltersOutput, error) |
|
| 70 |
- |
|
| 71 |
- FilterLogEventsRequest(*cloudwatchlogs.FilterLogEventsInput) (*aws.Request, *cloudwatchlogs.FilterLogEventsOutput) |
|
| 72 |
- |
|
| 73 |
- FilterLogEvents(*cloudwatchlogs.FilterLogEventsInput) (*cloudwatchlogs.FilterLogEventsOutput, error) |
|
| 74 |
- |
|
| 75 |
- GetLogEventsRequest(*cloudwatchlogs.GetLogEventsInput) (*aws.Request, *cloudwatchlogs.GetLogEventsOutput) |
|
| 76 |
- |
|
| 77 |
- GetLogEvents(*cloudwatchlogs.GetLogEventsInput) (*cloudwatchlogs.GetLogEventsOutput, error) |
|
| 78 |
- |
|
| 79 |
- GetLogEventsPages(*cloudwatchlogs.GetLogEventsInput, func(*cloudwatchlogs.GetLogEventsOutput, bool) bool) error |
|
| 80 |
- |
|
| 81 |
- PutDestinationRequest(*cloudwatchlogs.PutDestinationInput) (*aws.Request, *cloudwatchlogs.PutDestinationOutput) |
|
| 82 |
- |
|
| 83 |
- PutDestination(*cloudwatchlogs.PutDestinationInput) (*cloudwatchlogs.PutDestinationOutput, error) |
|
| 84 |
- |
|
| 85 |
- PutDestinationPolicyRequest(*cloudwatchlogs.PutDestinationPolicyInput) (*aws.Request, *cloudwatchlogs.PutDestinationPolicyOutput) |
|
| 86 |
- |
|
| 87 |
- PutDestinationPolicy(*cloudwatchlogs.PutDestinationPolicyInput) (*cloudwatchlogs.PutDestinationPolicyOutput, error) |
|
| 88 |
- |
|
| 89 |
- PutLogEventsRequest(*cloudwatchlogs.PutLogEventsInput) (*aws.Request, *cloudwatchlogs.PutLogEventsOutput) |
|
| 90 |
- |
|
| 91 |
- PutLogEvents(*cloudwatchlogs.PutLogEventsInput) (*cloudwatchlogs.PutLogEventsOutput, error) |
|
| 92 |
- |
|
| 93 |
- PutMetricFilterRequest(*cloudwatchlogs.PutMetricFilterInput) (*aws.Request, *cloudwatchlogs.PutMetricFilterOutput) |
|
| 94 |
- |
|
| 95 |
- PutMetricFilter(*cloudwatchlogs.PutMetricFilterInput) (*cloudwatchlogs.PutMetricFilterOutput, error) |
|
| 96 |
- |
|
| 97 |
- PutRetentionPolicyRequest(*cloudwatchlogs.PutRetentionPolicyInput) (*aws.Request, *cloudwatchlogs.PutRetentionPolicyOutput) |
|
| 98 |
- |
|
| 99 |
- PutRetentionPolicy(*cloudwatchlogs.PutRetentionPolicyInput) (*cloudwatchlogs.PutRetentionPolicyOutput, error) |
|
| 100 |
- |
|
| 101 |
- PutSubscriptionFilterRequest(*cloudwatchlogs.PutSubscriptionFilterInput) (*aws.Request, *cloudwatchlogs.PutSubscriptionFilterOutput) |
|
| 102 |
- |
|
| 103 |
- PutSubscriptionFilter(*cloudwatchlogs.PutSubscriptionFilterInput) (*cloudwatchlogs.PutSubscriptionFilterOutput, error) |
|
| 104 |
- |
|
| 105 |
- TestMetricFilterRequest(*cloudwatchlogs.TestMetricFilterInput) (*aws.Request, *cloudwatchlogs.TestMetricFilterOutput) |
|
| 106 |
- |
|
| 107 |
- TestMetricFilter(*cloudwatchlogs.TestMetricFilterInput) (*cloudwatchlogs.TestMetricFilterOutput, error) |
|
| 108 |
-} |