Skip to content

Commit 064fc77

Browse files
committed
update modules
1 parent 325f2b9 commit 064fc77

7 files changed

Lines changed: 40 additions & 54 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Setup Go
1515
uses: actions/setup-go@v1
1616
with:
17-
go-version: 1.15
17+
go-version: 1.16
1818
- name: Run GoReleaser
1919
uses: goreleaser/goreleaser-action@v1
2020
with:

.github/workflows/unittest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Set up Go 1.15
13+
- name: Set up Go 1.16
1414
uses: actions/setup-go@v1
1515
with:
16-
go-version: 1.15
16+
go-version: 1.16
1717
id: go
1818

1919
- name: Check out code

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
.PHONY: build install update restore tidy update_all outdated
22

33
build:
4-
GO111MODULE=on go build -o gih_dev ./gih
4+
go build -o gih_dev ./gih
55

66
install:
7-
GO111MODULE=on go install -i ./gih
7+
go install ./gih
88

99
update: update_all tidy
1010

1111
restore: tidy
1212

1313
tidy:
14-
GO111MODULE=on go mod tidy
14+
go mod tidy
1515

1616
update_all:
17-
GO111MODULE=on go get -v all
17+
go get -v all
1818

1919
outdated:
20-
GO111MODULE=on go list -m -u all
20+
go list -m -u all
2121

2222
.PHONY: test
2323
test:
24-
GO111MODULE=on go test -v -race ./...
24+
go test -v -race ./...

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
![unittest](https://github.com/takecy/git-here/workflows/unittest/badge.svg)
88
[![Go Report Card](https://goreportcard.com/badge/github.com/takecy/git-here)](https://goreportcard.com/report/github.com/takecy/git-here)
9-
![](https://img.shields.io/badge/golang-1.15+-blue.svg?style=flat-square)
9+
![](https://img.shields.io/badge/golang-1.16+-blue.svg?style=flat-square)
1010
[![GoDoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](https://godoc.org/github.com/takecy/git-here)
1111
![](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)
1212

@@ -74,7 +74,7 @@ Options:
7474

7575
## Development
7676

77-
* Go 1.15+
77+
* Go 1.16+
7878

7979
#### Why this repository have vendor?
8080
It is to simplify development. You can start right away just by cloning.

gih/main.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func checkUpdate() {
9090
fmt.Printf("checking latest version...\n")
9191
repo := "takecy/git-here"
9292
updater, err := selfupdate.NewUpdater(selfupdate.Config{
93-
APIToken: "fa0b867fcef62ec8614dbcf2f58104630acda374", // read only of public info
93+
APIToken: "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", // read only of public info
9494
})
9595
if err != nil {
9696
fmt.Printf("Check update failed: %v\n", err)
@@ -105,7 +105,11 @@ func checkUpdate() {
105105

106106
fmt.Printf("the latest version is %s (%s)\n", latest.Version, latest.PublishedAt.Format("2006-01-02"))
107107

108-
v := semver.MustParse(version)
108+
v, err := semver.Parse(version)
109+
if err != nil {
110+
fmt.Printf("err: parse version failed: %v\n", err)
111+
return
112+
}
109113
if !found || latest.Version.LTE(v) {
110114
fmt.Printf("Current version is the latest:\nversion: %s\nsha: %s\ndate:%s\n", version, commit, date)
111115
return

go.mod

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,25 @@ module github.com/takecy/git-here
33
require (
44
github.com/blang/semver v3.5.1+incompatible
55
github.com/fatih/color v1.12.0
6+
github.com/fsnotify/fsnotify v1.4.9 // indirect
7+
github.com/golang/protobuf v1.5.2 // indirect
68
github.com/google/go-cmp v0.5.6 // indirect
79
github.com/google/go-querystring v1.1.0 // indirect
810
github.com/kr/text v0.2.0 // indirect
911
github.com/matryer/is v1.4.0
1012
github.com/mattn/go-isatty v0.0.13 // indirect
11-
github.com/onsi/ginkgo v1.16.4 // indirect
12-
github.com/onsi/gomega v1.13.0 // indirect
1313
github.com/pkg/errors v0.9.1
1414
github.com/rhysd/go-github-selfupdate v1.2.3
1515
github.com/ulikunitz/xz v0.5.10 // indirect
16-
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
17-
golang.org/x/net v0.0.0-20210610132358-84b48f89b13b // indirect
18-
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c // indirect
16+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
17+
golang.org/x/net v0.0.0-20210825183410-e898025ed96a // indirect
18+
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f // indirect
1919
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
20-
golang.org/x/sys v0.0.0-20210611083646-a4fc73990273 // indirect
20+
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect
2121
google.golang.org/appengine v1.6.7 // indirect
22+
google.golang.org/protobuf v1.27.1 // indirect
2223
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
24+
gopkg.in/yaml.v2 v2.4.0 // indirect
2325
)
2426

2527
go 1.13

0 commit comments

Comments
 (0)