From bbb91601a25d55eed5b0733ea6f2aa54464a2b44 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Tue, 25 Jan 2022 00:17:39 +0100 Subject: [PATCH] updated golang state --- states/golang/install.sls | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/states/golang/install.sls b/states/golang/install.sls index 634f4ae..7317039 100644 --- a/states/golang/install.sls +++ b/states/golang/install.sls @@ -2,23 +2,23 @@ {%- from "golang/map.jinja" import golang with context %} golang-archive-extract: archive.extracted: - - name: {{ golang.release_dir }}/go-{{ golang.version }} + - name: {{ golang.release_dir }}/golang-{{ golang.version }} - source: {{ golang.mirror }}/go{{ golang.version }}.{{ golang.os }}-{{ golang.arch }}.tar.gz - skip_verify: true - enforce_toplevel: false - options: --transform 's/^go\///g' - - if_missing: {{ golang.release_dir }}/go-{{ golang.version }} + - if_missing: {{ golang.release_dir }}/golang-{{ golang.version }} golang-binary-symlink: file.symlink: - - name: {{ golang.install_dir }}/go - - target: {{ golang.release_dir }}/go-{{ golang.version }} + - name: {{ golang.install_dir }}/golang + - target: {{ golang.release_dir }}/golang-{{ golang.version }} - force: true - require: - archive: golang-archive-extract golang-cleanup: software.cleanup: - - name: go + - name: golang - path: {{ golang.release_dir }} - version: "{{ golang.version }}"