Commit Graph

106 Commits

Author SHA1 Message Date
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
Craig Furman
bc51a8097f
Use highest matching minor version from go.mod (#50)
The go directive in go.mod files is of the format `major.minor`. This
commit will allow the highest installed version of go with the same
major component to be selected. The previous behaviour was to use the
highest installed version with the same major _and_ minor components,
but I don't think this was strictly necessary. It is valid to use go
1.16 to build a project whose go.mod declares "go 1.14", for example.
For packages within the module, the compiler should reject use of
language features introduced after the version specified by the go
directive.

I think this adheres more closely to the expected behaviour of programs
that parse `go.mod`, and asdf users who need to pin a particular minor
or patch version of go can use `.tool-versions` or `.go-version`.

Source: https://golang.org/ref/mod#go-mod-file-go
2021-06-16 08:04:20 -04:00
w1mvy
36f12c9393
Exit when download status 404 or 403 (#55) 2021-06-15 20:42:59 -04:00
Samuel García
625e8a23ce
Add extra space between sha256sum args (#52) 2021-06-15 17:09:39 -04:00
Alex Rudd
1f388f1b6a
Add extra space between shasum args (#49) 2021-05-12 13:46:48 -04:00
Kenny Parnell
9480360cc6
Add help texts per plugin guidelins. (#46) 2021-01-04 19:19:48 -05: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
Tomoyuki Harada
aaf9769563
fixes #38 (#39)
* fixes #38

* quote paths
2020-12-08 13:38:53 -05:00
David Marcin
ddffda95d5
Fix PATH for new go install (#41) 2020-12-08 13:35:19 -05:00
Michael Hale
9297fbefb1
Find the most recent matching installed version (#34)
* Find the most recent matching installed version

* pin match to beginning of string
2020-07-13 16:30:56 -04:00
Jack McCown
44abfc842f
feat: support auto go get default packages (#30) 2020-06-16 18:11:29 -04:00
Michael Hale
b7780500cf
Extract version from go.mod files (#32)
* Extract version from go.mod files

* make it work on linux too

* whitespace

* ignore asdf testing checkout

* fix test
2020-06-16 18:08:17 -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
Kenny Parnell
9a3e2cb87b
Merge pull request #25 from matt-e/support-aarch64
Support aarch64 (arm64)

Thanks @matt-e
2019-09-17 22:21:09 -04:00
Kenny Parnell
0c9024e71f Merge branch 'master' of github.com:kennyp/asdf-golang 2019-09-10 22:57:47 -04:00
Kenny Parnell
864d15576a Add note on using go get
Closes #18
2019-09-10 22:57:17 -04:00
Matthew Eddey
c6f1673d78 Support aarch64 (arm64) 2019-08-23 08:17:07 -07:00
Kenny Parnell
8762d2d0e6
Merge pull request #24 from awilkins/use-legacy-filename
Allow use of legacy filenames
2019-07-16 09:27:14 -04:00
Adrian Wilkins
323efb2645 Removed redundant script 2019-07-16 14:15:27 +01:00
Adrian Wilkins
7345694413 Allow use of legacy filenames 2019-04-04 16:32:32 +01:00
Kenny Parnell
e28e53bf51
Update issue templates 2019-03-02 03:03:39 -05:00
Kenny Parnell
69a569908f
Merge pull request #21 from wlads/sort-list-all
Sort versions so newest version be listed last
2018-06-26 22:23:18 -04:00
Wladimir Braguini Domingues
b49f236f7f Sort versions so newest version be listed last
The list-all command shows golang versions in the wrong order:
version 1.10 is listed before 1.2 and should be after 1.9 so it
appears closer to the user's prompt
2018-06-26 19:37:04 -03:00
Kenny Parnell
e60e75f6b0
Merge pull request #19 from austince/patch-1
Adding a Requirements section
2018-05-24 14:31:16 -04:00
Austin Cawley-Edwards
a31eacd783
Adding a Requirements section
Adds a requirements section. Ubuntu 16.04 no longer uses curl by default. Could switch to wget?
2018-02-25 13:30:34 -05:00
Kenny Parnell
fedcc5ca80 Update links in README from HashNuke to asdf-vm 2018-02-23 10:00:42 -05:00
Kenny Parnell
b17c26a23e
Merge pull request #14 from mrinalwadhwa/master
fix temp directory creation for osx users that have GNU mktemp
2018-01-24 10:37:26 -05:00
Mrinal Wadhwa
154fd2adba fix temp directory creation for osx 2018-01-23 20:17:04 -06:00
Kenny Parnell
68875a227b Make BSD sed play nice.
Merges #12

Squashed commit of the following:

commit 29d691dfe0
Author: Kenny Parnell <k.parnell@gmail.com>
Date:   Mon Jan 22 21:31:59 2018 -0500

    Use the current branch instead of master for Travis

commit 708bd0f74a
Author: Kenny Parnell <k.parnell@gmail.com>
Date:   Mon Jan 22 21:27:28 2018 -0500

    Try to determine which sed we're using.
2018-01-22 21:48:35 -05:00
Kenny Parnell
53f76cffe1
Merge pull request #11 from barnabasJ/patch-1
Update list-bin-paths
2018-01-22 11:03:07 -05: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
d34f9282b4 Only set pipefail if Bash 3 or greater. 2018-01-22 09:45:18 -05:00
Kenny Parnell
5362bad1e5
Merge pull request #10 from daenney/patch-1
exec-env: Handle system version correctly
2018-01-19 17:08:34 -05:00
Barnabas Jovanovics
b8dd39acbf
Update list-bin-paths
added packages/bin, so that reshim will pick up on the installed packages
2018-01-05 15:44:13 +01:00
Daniele Sluijters
40e18d3eff
exec-env: Handle system version correctly 2017-12-06 19:38:25 +01:00
Kenny Parnell
da123dbfbc
Merge pull request #7 from missingcharacter/pagination
Adding support for pagination in list-all
2017-11-17 02:59:21 -05:00
Kenny Parnell
7a06fa1262
Merge pull request #2 from HashNuke/set-go-path
Set GOPATH if not already set
2017-11-17 02:56:00 -05:00
Ricardo Rosales
70c8c9aa71 Adding support for pagination in list-all 2017-09-03 02:30:59 -07:00
Akash Manohar
beaa7cead3 Set GOPATH if not already set 2016-11-11 01:25:51 +05:30
Kenny Parnell
2d4daf9ee1 Add Travis badge. 2016-08-29 22:01:14 -04:00
Kenny Parnell
9fe027aef5 Merge branch 'master' of github.com:kennyp/asdf-golang 2016-08-29 21:59:39 -04:00
Kenny Parnell
3f032d53b0 Add .travis.yml 2016-08-29 21:59:29 -04:00