Commit Graph

68 Commits

Author SHA1 Message Date
francisco souza 5a59f896b9
gobin: make sure GOPATH gets trimmed before use in path.join
On Windows, `go env GOPATH` keeps the end-line character, making it
unusable (see sample build failure:
https://github.com/fsouza/vod-module-sprite/runs/478762225?check_suite_focus=true#step:5:62).
2020-03-01 23:59:03 -05:00
francisco souza 4241f446d8
gobin: use execFile instead of exec to query GOPATH
Should fix the behavior on Windows.
2020-03-01 22:07:49 -05:00
francisco souza 0dbc2e7f12
Fix tests for gobin on Windows 2020-03-01 21:34:51 -05:00
francisco souza fecd8b0af8
github/workflows: Go 1.14 is out, fix test
1.14.0 satisfies ^1.13.6, so the test started failing once Go 1.14 was
released.

This test is going to break again when Go 1.15 is released, so maybe we
need a better fix?
2020-03-01 21:27:28 -05:00
francisco souza 25c870be4d
Add $GOBIN
- Set $GOBIN to $(go env GOPATH)/bin
- Add $GOBIN to the PATH

Should make the setup of tools like golangci-lint or golint work with a
simple `go get`.

Using $GOBIN instead of $GOPATH/bin because the goal is to have GOPATH
not being directly referenced. Also, in the future, GOBIN will have a
default value too, so we would not need to manually set it, just add it
to the path (see discussion in golang/go#23439).

Closes #14.
2020-03-01 21:18:28 -05:00
Bryan MacFarlane 2096a2c66a
Merge pull request #40 from actions/v2-proxy
v2 with proxy support
2020-02-10 19:28:14 -05:00
Bryan MacFarlane 768458bd0b pre-release version and test 2020-02-10 19:18:01 -05:00
Bryan MacFarlane 43880314e9 CR feedback 2020-02-10 15:21:04 -05:00
Bryan MacFarlane 7ea80d8e5f casing 2020-02-09 22:42:10 -05:00
Bryan MacFarlane a6a701e18e better user output 2020-02-09 22:39:44 -05:00
Bryan MacFarlane 6b10398c43 removed unneeded console.log 2020-02-09 19:30:05 -05:00
Bryan MacFarlane 87e783e981 wf update 2020-02-09 19:25:28 -05:00
Bryan MacFarlane a037787d02 wf update 2020-02-09 19:20:43 -05:00
Bryan MacFarlane 7d57e56d4d update tests 2020-02-09 19:05:20 -05:00
Bryan MacFarlane 6cb99a33d7 another test 2020-02-09 18:48:40 -05:00
Bryan MacFarlane 241a335117 mock os instead of system 2020-02-09 18:22:24 -05:00
Bryan MacFarlane 79b62adb05 another test and bugs 2020-02-09 18:09:15 -05:00
Bryan MacFarlane 106977639b audit workflow 2020-02-09 14:41:37 -05:00
Bryan MacFarlane 7af81a4a65 bit of cleanup 2020-02-09 14:39:34 -05:00
Bryan MacFarlane f4b0281c15 mocked tests work with no internet 2020-02-09 09:25:20 -05:00
Bryan MacFarlane cfc658b90a format 2020-02-09 08:47:38 -05:00
Bryan MacFarlane 3c844703e7 bugs 2020-02-09 08:44:32 -05:00
Bryan MacFarlane dc575ee3b3 format 2020-02-09 00:29:21 -05:00
Bryan MacFarlane 4282769cc0 starting v2 and proxy support 2020-02-09 00:21:39 -05:00
Ross Brodbeck 9fbc767707
Merge pull request #30 from hross/master
Change getFileName to do architecture lookups and add arm support
2019-11-25 07:17:19 -05:00
Ross Brodbeck 0cbaec8e4b Change getFileName to do architecture lookups and add arm support 2019-11-21 10:23:32 -05:00
Hayden Faulds 75259a5ae0
Merge pull request #20 from subosito/golang-dl
Use golang-dl release data
2019-09-16 15:42:36 +01:00
Danny McCormick 4efa1b82d1
Deprecate version 2019-09-12 10:36:27 -04:00
Alif Rachmawadi bc6edb526d
update test assertion 2019-09-05 13:27:28 +07:00
Alif Rachmawadi 21620fff65
use golang-dl release data 2019-09-05 13:09:55 +07:00
Danny McCormick 595aed780b
Update .gitignore (#17) 2019-08-27 11:14:02 -04:00
Alif Rachmawadi 632d18fc92 Handle .x version syntax with latest release (#13)
* get latest release for .x syntax version

* added nock as dev dependency

* added test for .x syntax

* updated readme

* updated http client name

* use rest client for getting available versions

* more .x handling

* move nock to setup and teardown
2019-08-19 08:28:37 -04:00
Danny McCormick 5064ef8f2b
Use correct comment character 2019-08-16 10:21:05 -04:00
Danny McCormick 3b60f67c92
Consume toolkit from npm (#9) 2019-08-16 09:43:51 -04:00
Danny McCormick 818723587f
Update to use go-version (#10) 2019-08-13 16:31:11 -04:00
Danny McCormick b98503c960
Add badge 2019-08-12 15:13:31 -04:00
Danny McCormick e7a06beff0
Update action name 2019-08-12 14:41:23 -04:00
Danny McCormick 419ae75c25
Quoting 2019-08-01 11:05:15 -04:00
Danny McCormick 58fca98f91
v1 (#8) 2019-08-01 09:19:30 -04:00
Stephen Franceschelli 136ed85710 Fix build. (#7)
* Fix.

* Husky commit correct node modules
2019-07-30 13:37:35 -04:00
Danny McCormick ffce9ce43f
steps not actions 2019-07-25 22:59:14 -04:00
Bryan MacFarlane fb0fde1081
actions to steps 2019-07-25 21:28:46 -04:00
Danny McCormick a7fe89aa82
Update README.md 2019-07-23 15:46:37 -04:00
Danny McCormick 706cf65fdf
Add checkout 2019-07-23 15:15:32 -04:00
Danny McCormick fb871febfe
Update workflow.yml (#6) 2019-07-23 13:24:08 -04:00
Danny McCormick 41359816c1
Update README.md 2019-07-17 10:50:58 -04:00
Danny McCormick d42247215e
Update workflow.yml (#5) 2019-07-16 14:32:18 -04:00
Danny McCormick 44112531e2
Fix husky 2019-07-12 11:01:07 -04:00
Danny McCormick fc36eb15ce
Merge pull request #4 from actions/v2-workflow
v2 workflow
2019-07-11 16:22:11 -04:00
Danny McCormick 8560958d2f
Delete legacy workflow 2019-07-11 16:20:22 -04:00