Skip to content

Commit 1e8c799

Browse files
committed
Wire up MODULE variable
1 parent 7291bec commit 1e8c799

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

ci/pipeline/jobs/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
file: git-ci/ci/tasks/build.yml
1212
params:
1313
APP_NAME: (( grab meta.name ))
14+
MODULE: (( grab meta.go.module ))
1415
- put: build
1516
params:
1617
file: build/*.tar.gz

ci/pipeline/jobs/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
- task: test
1414
file: git-ci/ci/tasks/test.yml
1515
params:
16-
APP_NAME: (( grab meta.name ))
16+
APP_NAME: (( grab meta.name ))
17+
MODULE: (( grab meta.go.module ))
1718
AWS_ACCESS_KEY: (( grab meta.aws.access_key ))
1819
AWS_SECRET_KEY: (( grab meta.aws.secret_key ))
1920
BOSH_ENVIRONMENT: (( grab meta.bosh.target ))

ci/scripts/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ bail() {
1616
exit 2
1717
}
1818
test -n "${APP_NAME:-}" || bail "APP_NAME must be set to the name of this package."
19-
#test -n "${MODULE:-}" || bail "MODULE must be set to the Go Module path of this package."
19+
test -n "${MODULE:-}" || bail "MODULE must be set to the Go Module path of this package."
2020
test -n "${GOPATH:-}" || bail "Expecting GOPATH to be set -- make sure correct image is specified."
2121

2222
test -f "${VERSION_FROM}" || bail "Version file (${VERSION_FROM}) not found."

ci/scripts/test-all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bail() {
1717
exit 2
1818
}
1919
test -n "${APP_NAME:-}" || bail "APP_NAME must be set to the name of this package."
20-
#test -n "${MODULE:-}" || bail "MODULE must be set to the Go Module path of this package."
20+
test -n "${MODULE:-}" || bail "MODULE must be set to the Go Module path of this package."
2121
test -n "${GOPATH:-}" || bail "Expecting GOPATH to be set -- make sure correct image is specified."
2222

2323
test -f "${VERSION_FROM}" || bail "Version file (${VERSION_FROM}) not found."

0 commit comments

Comments
 (0)