Migrate from godep to go modules 01/80301/2
authorFaseela K <faseela.k@ericsson.com>
Wed, 13 Feb 2019 07:12:22 +0000 (12:42 +0530)
committerFaseela K <faseela.k@ericsson.com>
Tue, 26 Feb 2019 16:53:18 +0000 (16:53 +0000)
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 <faseela.k@ericsson.com>
csit/variables/coe/coe_play.yaml

index bf00bbcbfa5ce3d17b0a7044d2dd93f1e27e346f..324dbde3ac18ea7e6860ddf48a02a171f978367b 100644 (file)
       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:
       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"
     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"