Skip to content

Commit f301e5d

Browse files
authored
GODRIVER-2517 Move all binary build targets to the cmd/ directory. (#1056)
1 parent ce99db4 commit f301e5d

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

.evergreen/run-mongodb-aws-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ set -x
3232

3333
# For Go 1.16+, Go builds requires a go.mod file in the current working directory or a parent
3434
# directory. Spawn a new subshell, "cd" to the project directory, then run "go run".
35-
(cd ${PROJECT_DIRECTORY} && go run "./mongo/testaws/main.go")
35+
(cd ${PROJECT_DIRECTORY} && go run "./cmd/testaws/main.go")

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test-short:
111111
### Evergreen specific targets. ###
112112
.PHONY: build-aws-ecs-test
113113
build-aws-ecs-test:
114-
go build $(BUILD_TAGS) ./mongo/testaws/main.go
114+
go build $(BUILD_TAGS) ./cmd/testaws/main.go
115115

116116
.PHONY: evg-test
117117
evg-test:
@@ -121,7 +121,7 @@ evg-test:
121121

122122
.PHONY: evg-test-atlas
123123
evg-test-atlas:
124-
go run ./mongo/testatlas/main.go $(ATLAS_URIS)
124+
go run ./cmd/testatlas/main.go $(ATLAS_URIS)
125125

126126
.PHONY: evg-test-atlas-data-lake
127127
evg-test-atlas-data-lake:
File renamed without changes.
File renamed without changes.

mongo/integration/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
package integration
8+
9+
// This file exists to allow the build scripts (and standard Go builds for some early Go versions)
10+
// to succeed. Without it, the build may encounter an error like:
11+
//
12+
// go build go.mongodb.org/mongo-driver/mongo/integration: build constraints exclude all Go files in ./go.mongodb.org/mongo-driver/mongo/integration
13+
//

mongo/integration/unified/main.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)