Skip to content

Commit 5200b72

Browse files
committed
update ci to assume project uses go modules
1 parent 1a85c92 commit 5200b72

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

ci/pipeline.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ meta:
2222

2323
go:
2424
version: 1.12
25-
module: (( concat "github.com/" meta.github.owner "/" meta.github.repo ))
26-
cmd_module: (( grab meta.go.module ))
2725
binary: (( grab meta.github.repo ))
2826
force_static_binary: false
2927

@@ -89,8 +87,6 @@ jobs:
8987
run:
9088
path: git/ci/scripts/test
9189
args: []
92-
# params:
93-
# MODULE: (( grab meta.go.module ))
9490
on_failure:
9591
put: notify
9692
params:
@@ -118,12 +114,10 @@ jobs:
118114
tag: (( grab meta.image.tag ))
119115
inputs:
120116
- name: git-pull-requests
121-
path: (( concat "gopath/src/" meta.go.module ))
117+
path: git
122118
run:
123-
path: (( concat "./gopath/src/" meta.go.module "/ci/scripts/test" ))
119+
path: git/ci/scripts/test
124120
args: []
125-
params:
126-
MODULE: (( grab meta.go.module ))
127121
on_success:
128122
put: git-pull-requests
129123
params:
@@ -289,22 +283,20 @@ jobs:
289283
inputs:
290284
- name: version
291285
- name: git
292-
path: (( concat "gopath/src/" meta.go.module ))
293286
outputs:
294287
- name: gh
295288
- name: pushme
296289
run:
297-
path: (( concat "./gopath/src/" meta.go.module "/ci/scripts/shipit" ))
290+
path: git/ci/scripts/shipit
298291
args: []
299292
params:
300293
BINARY: (( grab meta.go.binary ))
301-
REPO_ROOT: (( concat "gopath/src/" meta.go.module ))
294+
REPO_ROOT: git
302295
VERSION_FROM: version/number
303296
RELEASE_NAME: (( grab meta.release ))
304297
RELEASE_ROOT: gh
305298
REPO_OUT: pushme
306299
BRANCH: (( grab meta.github.branch ))
307-
CMD_PKG: (( grab meta.go.cmd_module ))
308300
STATIC_BINARY: (( grab meta.go.force_static_binary ))
309301
TARGETS: (( grab meta.shipit.targets ))
310302
- name: version

0 commit comments

Comments
 (0)