2016-08-30 10:01:14 +08:00
|
|
|
[![Build Status](https://travis-ci.org/kennyp/asdf-golang.svg?branch=master)](https://travis-ci.org/kennyp/asdf-golang)
|
|
|
|
|
2016-02-29 15:23:40 +08:00
|
|
|
# asdf-golang
|
2018-02-23 23:00:42 +08:00
|
|
|
golang plugin for [asdf version manager](https://github.com/asdf-vm/asdf)
|
2016-02-29 15:23:40 +08:00
|
|
|
|
2018-02-26 02:30:34 +08:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
**Ubuntu 16.04+** `curl`
|
|
|
|
|
|
|
|
|
2016-02-29 15:23:40 +08:00
|
|
|
## Install
|
|
|
|
|
|
|
|
```
|
2016-02-29 15:36:42 +08:00
|
|
|
asdf plugin-add golang https://github.com/kennyp/asdf-golang.git
|
2016-02-29 15:23:40 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Use
|
|
|
|
|
2018-02-23 23:00:42 +08:00
|
|
|
Check the [asdf](https://github.com/asdf-vm/asdf) readme for instructions on how to install & manage versions of go.
|
2016-02-29 15:23:40 +08:00
|
|
|
|
2019-09-11 10:57:17 +08:00
|
|
|
## When using `go get`
|
|
|
|
|
|
|
|
After using `go get` to install a package you need to run `asdf reshim golang` to get any new shims.
|
|
|
|
|
2020-06-17 06:11:29 +08:00
|
|
|
|
|
|
|
### Default `go get` packages
|
|
|
|
|
|
|
|
asdf-golang can automatically install a default set of packages with `go get -u $PACKAGE` right after installing a new Go version.
|
|
|
|
To enable this feature, provide a \$HOME/.default-golang-pkgs file that lists one package per line, for example:
|
|
|
|
|
|
|
|
```
|
|
|
|
// allows comments
|
|
|
|
github.com/Dreamacro/clash
|
|
|
|
github.com/jesseduffield/lazygit
|
|
|
|
```
|
|
|
|
|
2016-02-29 15:23:40 +08:00
|
|
|
## Contributing
|
|
|
|
|
|
|
|
Feel free to create an issue or pull request if you find a bug.
|
|
|
|
|
|
|
|
## Issues
|
|
|
|
|
2018-01-23 00:00:40 +08:00
|
|
|
* Assumes Linux, FreeBSD, or Mac
|
2020-01-28 06:41:36 +08:00
|
|
|
* Assumes x86_64, i386, i686, armv6l, armv7l, arm64 and ppc64le
|
2016-02-29 15:23:40 +08:00
|
|
|
|
|
|
|
## License
|
|
|
|
MIT License
|