Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Commit 893d304

Browse files
authored
Merge pull request #112 from redbubble/lw-go-1.18
Bump to go 1.18 and update deps
2 parents 4eb9afb + 3dd8bb5 commit 893d304

File tree

5 files changed

+531
-83
lines changed

5 files changed

+531
-83
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- uses: actions/checkout@v2
99
- uses: actions/setup-go@v2
1010
with:
11-
go-version: '^1.16.1'
11+
go-version: '^1.18.5'
1212
- run: make fmt && git diff --exit-code
1313
- run: GO111MODULE=off go get gotest.tools/gotestsum
1414
- run: make test

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
VERSION ?= 1.5.11
1+
VERSION ?= 1.6.0
22
GIT_HASH = $(shell git rev-parse --short HEAD)
33
DELIVERY_ENGINEERING_GPG_KEY = 0x877817E441F4F9B0
44

55
.PHONY: test install
66

77
test:
8+
command -v gotestsum || go install gotest.tools/gotestsum@latest
89
gotestsum
910

1011
fmt:

README.md

+9-20
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A tool to generate access keys for AWS using Okta. If you want a backronym, try
88

99
### Installation
1010

11-
We produce builds of `yak` for OSX and Linux. Windows is not currently supported.
11+
We produce builds of `yak` for macOS and Linux.
1212

1313
#### macOS with Homebrew
1414

@@ -220,27 +220,13 @@ yak prod [<command>]
220220

221221
## Development
222222

223-
### Go Get
224-
225-
To hack on `yak`, you'll want to get a copy of the source. To do
226-
that:
223+
To hack on `yak`, you'll want to get a copy of the source. Then:
227224

228225
```
229-
go get -u github.com/redbubble/yak
230-
```
231-
232-
### Installing dependencies
233-
234-
You'll need the [dep](https://github.com/golang/dep) tool (if you're
235-
on macOS, `brew install dep`. Linux is a bit tricker; see the [dep
236-
README](https://github.com/golang/dep#installation) for details).
237-
238-
Then run (inside your `$GOPATH/src/github.com/redbubble/yak` directory):
239-
```
240-
make vendor
226+
go build
241227
```
242228

243-
This will install all your dependencies into the `vendor` directory.
229+
### Releasing changes
244230

245231
If you want to do releases, you'll also want the `deb-s3` package.
246232
You'll also want `gnupg2` to be able to sign releases, but i'll leave
@@ -258,12 +244,15 @@ You can then run `$GOPATH/bin/yak`.
258244

259245
### Running tests
260246

261-
To run all the tests in the project through [go-passe](https://github.com/redbubble/go-passe), run:
247+
Just run:
248+
262249
```
263250
make test
264251
```
265252

266-
To run them without go-passe, or to run the tests for any individual package, you can run:
253+
If `gotestsum` isn't available we'll try and install it.
254+
To run tests without gotestsum, or to run the tests for any individual package, you can run:
255+
267256
```
268257
go test <package-directory>
269258
```

go.mod

+32-21
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,40 @@
11
module github.com/redbubble/yak
22

3-
go 1.14
3+
go 1.18
44

55
require (
6-
github.com/BurntSushi/toml v0.3.1 // indirect
7-
github.com/aws/aws-sdk-go v1.35.5
8-
github.com/fsnotify/fsnotify v1.4.7 // indirect
9-
github.com/gopasspw/pinentry v0.0.0-00010101000000-000000000000
10-
github.com/hashicorp/hcl v0.0.0-20180404174102-ef8a98b0bbce // indirect
11-
github.com/inconshreveable/mousetrap v1.0.0 // indirect
12-
github.com/magiconair/properties v1.7.6 // indirect
13-
github.com/mitchellh/go-homedir v0.0.0-20161203194507-b8bc1bf76747
14-
github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238 // indirect
6+
github.com/aws/aws-sdk-go v1.44.78
7+
github.com/gopasspw/pinentry v0.0.2
8+
github.com/mitchellh/go-homedir v1.1.0
159
github.com/patrickmn/go-cache v2.1.0+incompatible
16-
github.com/pelletier/go-toml v1.1.0 // indirect
17-
github.com/sirupsen/logrus v1.8.1
18-
github.com/spf13/afero v1.1.0 // indirect
19-
github.com/spf13/cast v1.2.0 // indirect
20-
github.com/spf13/cobra v0.0.2
21-
github.com/spf13/jwalterweatherman v0.0.0-20180109140146-7c0cea34c8ec // indirect
22-
github.com/spf13/pflag v1.0.1 // indirect
23-
github.com/spf13/viper v1.0.2
24-
github.com/stretchr/testify v1.6.1 // indirect
25-
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
26-
golang.org/x/net v0.0.0-20200202094626-16171245cfb2
10+
github.com/sirupsen/logrus v1.9.0
11+
github.com/spf13/cobra v1.5.0
12+
github.com/spf13/viper v1.12.0
13+
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
14+
golang.org/x/net v0.0.0-20220812174116-3211cb980234
15+
)
16+
17+
require (
18+
github.com/fsnotify/fsnotify v1.5.4 // indirect
19+
github.com/hashicorp/hcl v1.0.0 // indirect
20+
github.com/inconshreveable/mousetrap v1.0.1 // indirect
21+
github.com/jmespath/go-jmespath v0.4.0 // indirect
22+
github.com/magiconair/properties v1.8.6 // indirect
23+
github.com/mitchellh/mapstructure v1.5.0 // indirect
24+
github.com/pelletier/go-toml v1.9.5 // indirect
25+
github.com/pelletier/go-toml/v2 v2.0.3 // indirect
26+
github.com/spf13/afero v1.9.2 // indirect
27+
github.com/spf13/cast v1.5.0 // indirect
28+
github.com/spf13/jwalterweatherman v1.1.0 // indirect
29+
github.com/spf13/pflag v1.0.5 // indirect
30+
github.com/subosito/gotenv v1.4.0 // indirect
31+
golang.org/x/sys v0.0.0-20220817070843-5a390386f1f2 // indirect
32+
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035 // indirect
33+
golang.org/x/text v0.3.7 // indirect
34+
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
35+
gopkg.in/ini.v1 v1.67.0 // indirect
36+
gopkg.in/yaml.v2 v2.4.0 // indirect
37+
gopkg.in/yaml.v3 v3.0.1 // indirect
2738
)
2839

2940
replace github.com/gopasspw/pinentry => github.com/redbubble/pinentry v0.0.3-0.20211015012734-36081cf01f93

0 commit comments

Comments
 (0)