25 lines
770 B
Plaintext
25 lines
770 B
Plaintext
---
|
|
{%- from "golang/map.jinja" import golang with context %}
|
|
golang-archive-extract:
|
|
archive.extracted:
|
|
- name: {{ golang.release_dir }}/go-{{ 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 }}
|
|
|
|
golang-binary-symlink:
|
|
file.symlink:
|
|
- name: {{ golang.install_dir }}/go
|
|
- target: {{ golang.release_dir }}/go-{{ golang.version }}
|
|
- force: true
|
|
- require:
|
|
- archive: golang-archive-extract
|
|
|
|
golang-cleanup:
|
|
software.cleanup:
|
|
- name: go
|
|
- path: {{ golang.release_dir }}
|
|
- version: "{{ golang.version }}"
|