From: Faseela K Date: Wed, 13 Feb 2019 07:12:22 +0000 (+0530) Subject: Migrate from godep to go modules X-Git-Tag: pre-potassium~368 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=integration%2Ftest.git;a=commitdiff_plain;h=396723e42140c4b60a5c6020655fd93228202c46 Migrate from godep to go modules COE CSIT has migrated to latest golang, so we can start using go modules for building watcher and cni. Change-Id: Ie9c54e81a7b9917c818d234df8c6e53a83bc6349 Signed-off-by: Faseela K --- diff --git a/csit/variables/coe/coe_play.yaml b/csit/variables/coe/coe_play.yaml index bf00bbcbfa..324dbde3ac 100644 --- a/csit/variables/coe/coe_play.yaml +++ b/csit/variables/coe/coe_play.yaml @@ -23,10 +23,6 @@ file: path: "{{ ansible_env.HOME }}/go/bin" state: directory - - name: Install dep - shell: curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - args: - creates: "{{ gopath }}/bin/dep" - name: Show gerrit details run_once: true debug: @@ -54,13 +50,8 @@ run_once: true debug: var=git_log_output.stdout_lines - - name: Fetch odl-cni dependencies with dep - shell: dep ensure -vendor-only - args: - chdir: "{{ coe_path }}/odlCNIPlugin/odlovs-cni" - creates: "{{ coe_path }}/odlCNIPlugin/odlovs-cni/vendor" - name: Build odlovs-cni - shell: go build + shell: GO111MODULE=on go build args: chdir: "{{ coe_path }}/odlCNIPlugin/odlovs-cni" creates: "{{ coe_path }}/odlCNIPlugin/odlovs-cni/odlovs-cni" @@ -81,13 +72,8 @@ GOPATH: "{{ gopath }}" GOROOT: /usr/local/go tasks: - - name: Fetch watcher dependencies with dep - shell: dep ensure -vendor-only - args: - chdir: "{{ coe_path }}/watcher" - creates: "{{ coe_path }}/watcher/vendor" - name: Build watcher - shell: go build + shell: GO111MODULE=on go build args: chdir: "{{ coe_path }}/watcher" creates: "{{ coe_path }}/watcher/watcher"