Commit Graph

22 Commits

Author SHA1 Message Date
Sora Morimoto
d8dec15ccc
Hygiene (#113)
* Add Makefile for Hygiene

Signed-off-by: Sora Morimoto <sora@morimoto.io>

* make format

Signed-off-by: Sora Morimoto <sora@morimoto.io>

---------

Signed-off-by: Sora Morimoto <sora@morimoto.io>
Co-authored-by: Kenny Parnell <k.parnell@gmail.com>
2023-07-19 09:32:53 -04:00
Kenny Parnell
03d30a52ae
Append @latest if doing install and version isn't specified. 2022-02-09 14:30:28 -05:00
John Maguire
89ced07d86
Updated the default packages command to use "go install" for versions 1.16+ (#67)
* Updated the default packages command to use "go install" for versions
greater than 1.16

* Cleaning up for linting, added condition to also check major version

* Update Version Parsing

Attempts to make shell check happy.

Co-authored-by: john.maguire <john.maguire@cbinsights.com>
Co-authored-by: Kenny Parnell <k.parnell@gmail.com>
2022-02-09 14:18:21 -05:00
William Poetra Yoga
4f8976deb0
Prevent double-downloading installation archive (#61)
This small change prevents `asdf` from downloading the installation archive twice. This reverts a line change from #54.

Side note: according to https://asdf-vm.com/plugins/create.html, `bin/download` should do the downloading, not `bin/install`.
2021-10-20 13:12:58 -04:00
Jake Romer
337e60ef60
Check env var for default package list (#59)
Source the default package list from the env var `$ASDF_GOLANG_DEFAULT_PACKAGES_FILE`, defaulting to `${HOME}/.default-golang-pks` if the former is not set.
2021-08-25 20:37:15 -04:00
Kenny Parnell
92a2e61081 Cleanup ShellCheck warnings. 2021-06-16 10:46:00 -04:00
LouDou
cb8678e87e
Fix the install script (#54)
- Allows ASDF_DOWNLOAD_PATH to be unset or empty
- Ensure the download actually happens
- Clean up temp dir after download and installation
2021-06-16 10:33:28 -04:00
Kenny Parnell
b1990b0a23
Add bin/download per latest asdf guidelines (#45)
- Creates a temporary directory if using an older version of asdf.
- Install delegates to bin/download if using an older version of asdf.
2021-01-04 17:36:54 -05:00
BeanNan
3950f3633c
add check_shasum (#44)
* add check_sum

* Update README

* fix typo
2021-01-04 13:18:00 -05:00
Tomoyuki Harada
ab7c352e73
Set default GOPATH and GOROOT when installing default go pkgs (#43)
* set `GOROOT` and `GOPATH` in install_default_go_pkgs()

* quote paths

* pass GOROOT and GOPATH to the go command when installing default
packages

* remove unnecessary variable
2021-01-04 13:16:46 -05:00
Tomoyuki Harada
590a00cd20
fix: invalid asdf path in install_default_golang_pkgs() (#40)
* fix: invalid asdf path in `install_default_golang_pkgs()`

* no need to perform reshim in plugin's install

reshim should be performed in asdf when plugin's `bin/install` returns 0
2021-01-01 19:09:06 -05:00
Jerred Shepherd
958693df90
Support M1 ARM chip (#42)
Fix error `Arch 'arm64' not supported!` during install on M1 ARM chip
2020-12-08 13:47:15 -05:00
David Marcin
ddffda95d5
Fix PATH for new go install (#41) 2020-12-08 13:35:19 -05:00
Jack McCown
44abfc842f
feat: support auto go get default packages (#30) 2020-06-16 18:11:29 -04:00
uzxmx
831b8db058
Switch to dl.google.com
* Update default url when installing

Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>

* Cleanup unneeded BASE_URL

Signed-off-by: Mingxiang Xue <mingxiangxue@gmail.com>
2020-05-11 23:14:25 -04:00
Trung Lê
b93b58b69e Support ppc64le architecture (#26)
* Support ppc64le version of Go

* Mention about ppc64le architecture in the README

* Test multi-arch on Travis CI

* Use commit SHA for plugin-gitref
2020-01-27 17:41:36 -05:00
Matthew Eddey
c6f1673d78 Support aarch64 (arm64) 2019-08-23 08:17:07 -07:00
Mrinal Wadhwa
154fd2adba fix temp directory creation for osx 2018-01-23 20:17:04 -06:00
Kenny Parnell
ceb54998d2 Incorporate changes from @vifino to support armv{6,7}l/Alpine Linux.
Closes #3
2018-01-22 11:00:40 -05:00
Kenny Parnell
01994416c6 Add support for FreeBSD 2018-01-22 10:43:32 -05:00
Kenny Parnell
5cc349c44b Change mktemp command for Linux 2016-02-29 02:38:34 -05:00
Kenny Parnell
5072e957db Initial creation of scripts 2016-02-29 02:35:45 -05:00