forked from jackscott/golang-formula
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from noelmcloughlin/cleanup
feat(macos): add homebrew support & tidyup stuff
- Loading branch information
Showing
16 changed files
with
154 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: golang | ||
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS | ||
os: Debian, Ubuntu, Raspbian, RedHat, Fedora, CentOS, Amazon, Suse, openSUSE, Gentoo, Funtoo, Arch, Manjaro, Alpine, FreeBSD, OpenBSD, Solaris, SmartOS, Windows, MacOS | ||
os_family: Debian, RedHat, Suse, Gentoo, Arch, Alpine, FreeBSD, OpenBSD, Solaris, Windows, MacOS | ||
version: 0.6.5 | ||
release: 1 | ||
minimum_version: 2016.11 | ||
minimum_version: 2019.2 | ||
summary: golang formula | ||
description: Formula for golang | ||
description: Formula to install golang and configure it | ||
top_level_dir: golang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{#- Get the `tplroot` from `tpldir` #} | ||
{%- set tplroot = tpldir.split('/')[0] %} | ||
{%- set sls_config_clean = tplroot ~ '.config.clean' %} | ||
{%- set sls_repo_clean = '.repo.clean' %} | ||
{%- from tplroot ~ "/map.jinja" import golang with context %} | ||
include: | ||
- {{ sls_config_clean }} | ||
{%- if grains.kernel|lower == 'linux' %} | ||
- {{ sls_repo_clean }} | ||
{%- if golang.pkg.use_upstream_repo %} | ||
include: | ||
- .repo.clean | ||
{%- endif %} | ||
golang-package-clean-pkg-removed: | ||
golang-package-clean-pkg-cleaned: | ||
pkg.removed: | ||
- name: {{ golang.pkg.name }} | ||
- require: | ||
- sls: {{ sls_config_clean }} | ||
- sls: {{ sls_repo_clean }} | ||
{%- elif grains.os_family == 'MacOS' %} | ||
golang-package-clean-cmd-run-brew: | ||
cmd.run: | ||
- name: brew uninstall --force {{ golang.pkg.name }} | ||
- runas: {{ golang.rootuser }} | ||
- onlyif: test -x /usr/local/bin/brew | ||
- require: | ||
- sls: {{ sls_config_clean }} | ||
{%- endif %} |
Oops, something went wrong.