Skip to content

Commit 9a050cd

Browse files
Juice10rabbah
authored andcommitted
Add Govendor as the preferred way of installing dependencies for Go (#362)
1 parent d5cf31f commit 9a050cd

3 files changed

Lines changed: 130 additions & 7 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Godeps/_workspace
1313
/.gogradle/
1414
build
1515
/release/
16-
/vendor/
16+
/vendor/*/
1717
incubator-openwhisk-cli.iml
1818
wski18n/i18n_resources.go
1919
bin/

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
-->
1919

2020
# OpenWhisk Command Line Interface `wsk`
21+
2122
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)
2223
[![Build Status](https://travis-ci.org/apache/incubator-openwhisk-cli.svg?branch=master)](https://travis-ci.org/apache/incubator-openwhisk-cli)
2324

@@ -36,14 +37,14 @@ The OpenWhisk CLI is written in the Go language. You have two options to build
3637
the binary locally:
3738

3839
1. Build using the packaged Gradle scripts (including the 'gogradle' plugin),
39-
now the preferred build method.
40+
now the preferred build method.
4041
2. Compile in your local Go environment,
4142

4243
## Build the binary with Gradle
4344

4445
**Note:** For those who may have used the Gradle build previously, it has been
4546
re-engineered to no longer required Docker or Go to be pre-installed on your
46-
system. Using the [gogradle](https://github.com/gogradle/gogradle) plugin,
47+
system. Using the [gogradle](https://github.com/gogradle/gogradle) plugin,
4748
Gradle now uses a prexisting Go environment to build if it can be located, or
4849
downloads and installs an environment within the build directory.
4950

@@ -125,11 +126,12 @@ $ go-bindata -pkg wski18n -o wski18n/i18n_resources.go wski18n/resources
125126
```
126127

127128
Unfortunately, it has become necessary to lock dependencies versions to obtain a
128-
clean build of wsk. To that end, it's now necessary to populate the `vendors`
129-
folder using the versions selected in the `build.gradle`:
129+
clean build of wsk. To that end, it's now necessary to populate the `vendors`
130+
folder using the versions selected in the `vendor/vendor.json`:
130131

131-
```
132-
$ ./gradlew goVendor
132+
```sh
133+
$ go get -u github.com/kardianos/govendor # Install govendor tool
134+
$ govendor sync # Download and install packages with specified dependencies.
133135
```
134136

135137
Once vendor is populated, it's possible to build the binary:

vendor/vendor.json

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
{
2+
"comment": "",
3+
"ignore": "test",
4+
"package": [
5+
{
6+
"checksumSHA1": "ASp79qek5lZJ18lexnxnnw8wQSs=",
7+
"path": "github.com/apache/incubator-openwhisk-client-go/whisk",
8+
"revision": "d7cee96e83a1f38413a1f5286bd524dac72686c9",
9+
"revisionTime": "2018-08-03T16:52:51Z"
10+
},
11+
{
12+
"checksumSHA1": "4NY5lFykxXaoN+JNMxo179L79sU=",
13+
"path": "github.com/apache/incubator-openwhisk-client-go/wski18n",
14+
"revision": "d7cee96e83a1f38413a1f5286bd524dac72686c9",
15+
"revisionTime": "2018-08-03T16:52:51Z"
16+
},
17+
{
18+
"checksumSHA1": "A/DjlgGYOKIkKC8qckZB1shNTFk=",
19+
"path": "github.com/cloudfoundry/jibber_jabber",
20+
"revision": "bcc4c8345a21301bf47c032ff42dd1aae2fe3027",
21+
"revisionTime": "2015-11-20T18:32:58Z"
22+
},
23+
{
24+
"checksumSHA1": "AANTVr9CVVyzsgviODY6Wi2thuM=",
25+
"path": "github.com/fatih/color",
26+
"revision": "570b54cabe6b8eb0bc2dfce68d964677d63b5260",
27+
"revisionTime": "2017-05-23T13:53:55Z"
28+
},
29+
{
30+
"checksumSHA1": "nQqAEaB3gBG9PSKYZTbQ5IiN3jo=",
31+
"path": "github.com/ghodss/yaml",
32+
"revision": "e9ed3c6dfb39bb1a32197cb10d527906fe4da4b6",
33+
"revisionTime": "2018-05-03T02:20:59Z"
34+
},
35+
{
36+
"checksumSHA1": "yyAzHoiVLu+xywYI2BDyRq6sOqE=",
37+
"path": "github.com/google/go-querystring/query",
38+
"revision": "9235644dd9e52eeae6fa48efd539fdc351a0af53",
39+
"revisionTime": "2016-03-11T01:20:12Z"
40+
},
41+
{
42+
"checksumSHA1": "TuS7rrLDK41z7LMgbcET4O8uMj4=",
43+
"path": "github.com/hokaccha/go-prettyjson",
44+
"revision": "f75235bd99dad4e98ff360db8372d5c0ef1d054a",
45+
"revisionTime": "2014-12-01T06:53:30Z"
46+
},
47+
{
48+
"checksumSHA1": "40vJyUB4ezQSn/NSadsKEOrudMc=",
49+
"path": "github.com/inconshreveable/mousetrap",
50+
"revision": "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75",
51+
"revisionTime": "2014-10-17T20:07:13Z"
52+
},
53+
{
54+
"checksumSHA1": "I4njd26dG5hxFT2nawuByM4pxzY=",
55+
"path": "github.com/mattn/go-colorable",
56+
"revision": "d228849504861217f796da67fae4f6e347643f15",
57+
"revisionTime": "2016-11-03T16:00:40Z"
58+
},
59+
{
60+
"checksumSHA1": "xZuhljnmBysJPta/lMyYmJdujCg=",
61+
"path": "github.com/mattn/go-isatty",
62+
"revision": "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8",
63+
"revisionTime": "2016-08-06T12:27:52Z"
64+
},
65+
{
66+
"checksumSHA1": "Li0PaRmaVBdibS/zs8myzc07L6o=",
67+
"path": "github.com/mitchellh/go-homedir",
68+
"revision": "58046073cbffe2f25d425fe1331102f55cf719de",
69+
"revisionTime": "2018-08-01T23:32:06Z"
70+
},
71+
{
72+
"checksumSHA1": "uEc9/1HbYGeK7wPStF6FmUlfzGE=",
73+
"path": "github.com/nicksnyder/go-i18n/i18n",
74+
"revision": "991e81cc94f6c54209edb3192cb98e3995ad71c1",
75+
"revisionTime": "2016-11-05T14:54:59Z"
76+
},
77+
{
78+
"checksumSHA1": "S1YUq0Ts6uu44Krqwgqon0/hNWg=",
79+
"path": "github.com/nicksnyder/go-i18n/i18n/bundle",
80+
"revision": "991e81cc94f6c54209edb3192cb98e3995ad71c1",
81+
"revisionTime": "2016-11-05T14:54:59Z"
82+
},
83+
{
84+
"checksumSHA1": "+XOg99I1zdmBRUb04ZswvzQ2WS0=",
85+
"path": "github.com/nicksnyder/go-i18n/i18n/language",
86+
"revision": "991e81cc94f6c54209edb3192cb98e3995ad71c1",
87+
"revisionTime": "2016-11-05T14:54:59Z"
88+
},
89+
{
90+
"checksumSHA1": "nhlpSPeAP6jMGAuLPM2xflAZTlo=",
91+
"path": "github.com/nicksnyder/go-i18n/i18n/translation",
92+
"revision": "991e81cc94f6c54209edb3192cb98e3995ad71c1",
93+
"revisionTime": "2016-11-05T14:54:59Z"
94+
},
95+
{
96+
"checksumSHA1": "FZ0r4TzEy9UxXLkFVXFygApni4M=",
97+
"path": "github.com/spf13/cobra",
98+
"revision": "6e91dded25d73176bf7f60b40dd7aa1f0bf9be8d",
99+
"revisionTime": "2016-10-26T01:28:26Z"
100+
},
101+
{
102+
"checksumSHA1": "GxPD7A0NjMDom1xte0mghkpzr0E=",
103+
"path": "github.com/spf13/pflag",
104+
"revision": "5ccb023bc27df288a957c5e994cd44fd19619465",
105+
"revisionTime": "2016-10-24T13:13:51Z"
106+
},
107+
{
108+
"checksumSHA1": "UP4jCCzMRwJ78B+G1Mf5E4/81A4=",
109+
"path": "golang.org/x/sys/unix",
110+
"revision": "9a2e24c3733eddc63871eda99f253e2db29bd3b9",
111+
"revisionTime": "2016-11-08T14:26:43Z"
112+
},
113+
{
114+
"checksumSHA1": "RDJpJQwkF012L6m/2BJizyOksNw=",
115+
"path": "gopkg.in/yaml.v2",
116+
"revision": "eb3733d160e74a9c7e442f435eb3bea458e1d19f",
117+
"revisionTime": "2017-08-12T16:00:11Z"
118+
}
119+
],
120+
"rootPath": "github.com/apache/incubator-openwhisk-cli"
121+
}

0 commit comments

Comments
 (0)