From ac68bcca9cadaba641cce898a79169d742fad2b0 Mon Sep 17 00:00:00 2001 From: Matthew Stobbs Date: Fri, 24 Jan 2025 16:45:56 -0700 Subject: [PATCH] fix go installation for macos --- tasks/build/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/build/go.yml b/tasks/build/go.yml index 31bb9a3..f1e03be 100644 --- a/tasks/build/go.yml +++ b/tasks/build/go.yml @@ -7,7 +7,7 @@ ansible.builtin.set_fact: arch: "{{ _go.archmap[ansible_architecture] }}" -- name: set go Filename +- name: set go archive filename ansible.builtin.set_fact: go_archive: "go{{ _go.version }}.{{ ansible_system | lower }}-{{ arch }}.{{ _go.extmap[ansible_system] }}" tags: @@ -48,7 +48,7 @@ - name: install go macOS use pkg file ansible.builtin.command: - cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ goFilename }} -target /" + cmd: "installer -pkg {{ d_go_dl_tmp.path }}/{{ go_archive }} -target /" when: ansible_system == 'Darwin' become: true tags: