Set PATH/GOPATH for go explicitly

This commit is contained in:
2021-10-03 22:33:15 +02:00
parent 009b263e9e
commit c27be08ab1
2 changed files with 3 additions and 3 deletions

View File

@@ -494,7 +494,7 @@
when: not yubikey_touch_detector_binary.stat.exists when: not yubikey_touch_detector_binary.stat.exists
- name: build yubikey-touch-detector - name: build yubikey-touch-detector
shell: env GOPATH=$(pwd) go get -u github.com/maximbaz/yubikey-touch-detector shell: env GOPATH=$(pwd) GOPATH=/usr/local/go/bin go get -u github.com/maximbaz/yubikey-touch-detector
args: args:
chdir: "{{ yubikey_touch_detector_build_tempdir.path }}" chdir: "{{ yubikey_touch_detector_build_tempdir.path }}"
when: not yubikey_touch_detector_binary.stat.exists when: not yubikey_touch_detector_binary.stat.exists

View File

@@ -319,7 +319,7 @@
changed_when: false changed_when: false
- name: install go binaries for vim - name: install go binaries for vim
command: /usr/bin/nvim --headless +GoInstallBinaries +qall command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoInstallBinaries +qall'
changed_when: false changed_when: false
- name: update vim plugins - name: update vim plugins
@@ -327,7 +327,7 @@
changed_when: false changed_when: false
- name: update go binaries for vim - name: update go binaries for vim
command: /usr/bin/nvim --headless +GoUpdateBinaries +qall command: sh -c 'PATH=/usr/local/go/bin:$PATH GOPATH=/home/{{ user.name }}/.go /usr/bin/nvim --headless +GoUpdateBinaries +qall'
changed_when: false changed_when: false
- name: get ycm version after update - name: get ycm version after update