-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add golang to darwin and set go paths
* add installation of GoLang for darwin (macOS) * detect GoLang on *nix and set `GOPATH` and `GOBIN` if not set * add `GOBIN` to the `PATH` BREAKING CHANGE: The `git-flow-avh`, `git-extras`, and `git-flow-completion` tools are no installed by default. While git-flow is still a fairly popular workflow for private repositories, this prompt is designed to favor OSS development where forks are the norm. You can review the diff of this commit to see how they were installed on each platform if you would like to continue using these tools.
- Loading branch information
1 parent
988004b
commit 6128192
Showing
6 changed files
with
24 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# detect if go is installed and gopath is not already set | ||
if type go 1>/dev/null 2>&1; then | ||
|
||
# export the go path | ||
export GOPATH=${GOPATH:-$HOME/.go} | ||
|
||
# export the go bin | ||
export GOBIN=${GOBIN:-$GOPATH/bin} | ||
fi | ||
|
||
# determine if go bin is specified | ||
if [ ! -z "${GOBIN}" ]; then | ||
# add the go bin to the path | ||
export PATH=$PATH:$GOBIN | ||
fi | ||
|
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