Commit Graph

106 Commits

Author SHA1 Message Date
Ikuo Degawa
d4f1d65d59
Create set-env.bash (#147)
* Create set-env.bash
* Update README.md
2024-09-24 21:01:27 -04:00
Riccardo Padovani
159af6218b
Update list-bin-paths to include bin (#146)
Fix #143
2024-09-24 21:00:20 -04:00
github-actions[bot]
f80bd843de Update .github/CODEOWNERS 2024-09-14 08:42:40 +09:00
Piotr Kuglin
962a601cbd
Support for the GOBIN environment variable for each Go version (#139)
Set `GOBIN`
2024-08-20 17:54:27 -04:00
Bazico
0e86b1d5a7
Add dynamic GOPATH settings to zsh and fish (#127)
Co-authored-by: Kenny Parnell <k.parnell@gmail.com>
2024-05-20 13:01:13 -04:00
YANG Xudong
d1a522ebf2
Update helpers.sh (#137)
Add loong64 support.
2024-05-20 12:49:38 -04:00
Andy Jones
652c592264
Handle no go version set case (#132) 2024-04-19 08:15:44 -04:00
Allan Siqueira
e6edd35384
Add Support to nushell (#135) 2024-04-19 08:14:03 -04:00
Yusuke Iinuma
033730cb54
Use source command (. is deprecated) (#129) 2024-01-29 12:35:21 -05:00
Sora Morimoto
33b1f6d73a
Merge pull request #126 from asdf-community/renovate/asdf-vm-actions-3.x
chore(deps): update asdf-vm/actions action to v3
2023-10-11 00:57:39 +09:00
renovate[bot]
144de5abe7
chore(deps): update asdf-vm/actions action to v3 2023-10-09 00:04:57 +00:00
Russell Sanborn
116667e7ce
Update asdf-golang links to reference asdf-community instead of kennyp (#124) 2023-09-26 12:52:15 -04:00
Sora Morimoto
e7e8171c13
Merge pull request #122 from asdf-community/renovate/actions-checkout-4.x
chore(deps): update actions/checkout action to v4
2023-09-05 23:42:13 +09:00
renovate[bot]
e0e7f725f4
chore(deps): update actions/checkout action to v4 2023-09-05 00:57:23 +00:00
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
Rusty
577a6c5fe0
Update installation and CI status url to match repo url (#114)
* Update installation url to match repo url

I also updated the command from `asdf plugin-add` to `asdf plugin add`
to match the official documentation.

Reference:
https://asdf-vm.com/manage/plugins.html

* Update plugin repository and CI status to asd-community for Go
2023-07-18 17:23:13 -04:00
Sora Morimoto
3b44828884
Merge pull request #112 from asdf-community/renovate/asdf-vm-actions-2.x
chore(deps): update asdf-vm/actions action to v2
2023-07-13 02:55:25 +09:00
Sora Morimoto
783f1036c9
Merge pull request #111 from asdf-community/renovate/actions-checkout-3.x
chore(deps): update actions/checkout action to v3
2023-07-13 02:55:07 +09:00
renovate[bot]
d5174480ae
chore(deps): update asdf-vm/actions action to v2 2023-07-12 17:54:23 +00:00
renovate[bot]
b8b3469721
chore(deps): update actions/checkout action to v3 2023-07-12 17:54:19 +00:00
Sora Morimoto
835c2a04aa
Merge pull request #109 from asdf-community/renovate/configure
Configure Renovate
2023-07-13 02:53:47 +09:00
renovate[bot]
ada1d75d26 Add renovate.json 2023-07-13 02:52:50 +09:00
github-actions[bot]
8ac143d660 Add .github/CODEOWNERS 2023-07-13 02:22:33 +09:00
Eddie
21d9c329bb
Use built-in zsh function to get absolute dir path for golang (#105)
Co-authored-by: Edwin Galdamez <egaldamez@gumgum.com>
2023-05-23 21:14:14 -04:00
Renato Oliveira
9f07a48cc1
Add dynamic GOROOT setting for fish (#103) 2023-05-23 21:13:26 -04:00
Kenny Parnell
3c3674a10c
Add support for ASDF_GOLANG_MOD_VERSION (#101)
* Emmit warning and change behavior based on ASDF_GOLANG_MOD_VERSION

* Add note on ASDF_GOLANG_MOD_VERSION to README.

* Rename to ASDF_GOLANG_MOD_VERSION_ENABLED.
2023-05-11 14:37:45 -04:00
whi-tw
b0a0ee7d85
Use go.work in the same way as go.sum (#100)
Go workspaces were introduced in Go 1.18:
https://go.dev/blog/get-familiar-with-workspaces

They list a go version, so we can use them in the same way as go.mod
2023-05-09 10:56:42 -04:00
whi-tw
f1ab0168ea
Add tests for parse-legacy-file, to ensure the right version is selected (#89)
* Add tests for legacy version parser

* Unsure how this ever worked before?

Fix a weird flub I can’t explain.

This can probably be fixup’ed into some other commit, but I’m using the web app, so, this is difficult
2023-05-09 10:52:10 -04:00
Austin Cawley-Edwards
0f6f356b85
Add dynamic GOROOT setting for zsh (#56)
Co-authored-by: Kenny Parnell <k.parnell@gmail.com>
2023-05-09 10:40:46 -04:00
Kenny Parnell
99f0baf0af
Add Specs (#96)
* Initialize shellspec and add to workflow.

* Automatic Yes to shellspec prompts.

* Install and Run ShellSpec as one job.

* Add find to debug action.

* Use shellspec in lib dir.

* Run ShellSpec on matrix

* Add shellspec to it's own workflow.

* Move shellspec.yml back into main.yml because checkout.
2023-05-09 10:39:09 -04:00
Windymelt
be7daa8c57
avoid using stdin and use fd (#87)
Closes #90
2023-05-09 10:34:48 -04:00
Kenny Parnell
f006a12d6e
Add ASDF_GOLANG_SKIP_CHECKSUM to skip verifying checksum. (#95)
Update README
2022-12-17 00:10:23 -05:00
Kenny Parnell
c38b6d3ed2
Don't call back into asdf list golang (#93) 2022-12-16 23:43:41 -05:00
Kenny Parnell
1c2311264e
Revert "fix: replace google with go url (#88)" (#94)
This reverts commit ae1c810a85.
2022-12-16 23:34:04 -05:00
Julien Bongars
ae1c810a85
fix: replace google with go url (#88)
Co-authored-by: julien <julien@undercurrent.tech>
2022-12-16 23:32:12 -05:00
Eric Miller
cc8bc47d48
Filter latest version on user input (#74)
Fixes issue #73
2022-03-07 09:35:25 -05:00
Jesús Miguel Benito Calzada
353cca617b
Make exec-env strict-mode compliant (#72)
This file is not bash strict-mode compliant and because of that, if you execute it from a script in strict mode, it will through an error like follows:

WARN Failed to discover go env: failed to run 'go env': exit status 1
ERRO Running error: context loading failed: failed to load packages: failed to load with go/packages: err: exit status 1: stderr: /Users/myuser/.asdf/plugins/golang/bin/exec-env: line 4: GOROOT: unbound variable
2022-02-28 14:57:22 -05:00
Kenny Parnell
ffd0efbabd
Include go install in reshim note. 2022-02-28 14:46:41 -05:00
Kenny Parnell
71424d8ed1
actually add new latest-stable script 2022-02-09 15:14:59 -05:00
Kenny Parnell
2dad3faf58
Make sure latest is actually available. 2022-02-09 15:12:28 -05: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
Kenny Parnell
4aed736821
Always Run CI 2021-11-17 11:50:58 -05:00
Kenny Parnell
d2660cee3b
Replace Travis with Github Actions 2021-11-17 11:42:24 -05:00
Kenny Parnell
16711481cb
Fix Github Workflow command. 2021-11-17 11:37:52 -05:00
Kenny Parnell
0e19db49a8
Create main.yml 2021-11-17 11:36:01 -05:00
Kenny Parnell
09f1801f10
Speed Up list-all/latest (#63)
* Switch to git ls-remote instead of parsing bucket.

* Update README to point to Travis.com
2021-11-16 09:58:02 -05:00
Michael Poutre
85dab2f4f2
Add ASDF_GOLANG_OVERWRITE_ARCH override option (#62)
* Add ASDF_GOLANG_OVERWRITE_ARCH override option

This change adds an ASDF_GOLANG_OVERWRITE_ARCH variable to allow overriding the architecture. This is useful if you need to install version of Go that were not released for macOS ARM. This is also done in the asdf terraform plugin: e1c7eea0f7/bin/install (L115-L129)

* Update README to include section about ASDF_GOLANG_OVERWRITE_ARCH
2021-10-28 17:03:53 -04: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
0d0f2320b8
Document ASDF_GOLANG_DEFAULT_PACKAGES_FILE (#60)
This patch adds documentation for the ASDF_GOLANG_DEFAULT_PACKAGES_FILE variable introduced in #59.
2021-09-09 14:14:08 -04:00