Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 704bf90

Browse files
committed
drop support for go1.7
1 parent bb11ff7 commit 704bf90

File tree

14 files changed

+17
-138
lines changed

14 files changed

+17
-138
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- codeclimate-test-reporter < coverage.txt
2828
# YAML alias, for settings shared across the simpler builds
2929
- &simple-test
30-
go: 1.7.x
30+
go: 1.9.x
3131
stage: test
3232
install: skip
3333
env:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Dep
1010

11-
`dep` is a prototype dependency management tool for Go. It requires Go 1.7 or newer to compile.
11+
`dep` is a prototype dependency management tool for Go. It requires Go 1.8 or newer to compile.
1212

1313
`dep` is the official _experiment_, but not yet the official tool. Check out the [Roadmap](https://github.com/golang/dep/wiki/Roadmap) for more on what this means!
1414

internal/fs/fs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func RenameWithFallback(src, dst string) error {
109109
return errors.Wrapf(err, "cannot stat %s", src)
110110
}
111111

112-
err = rename(src, dst)
112+
err = os.Rename(src, dst)
113113
if err == nil {
114114
return nil
115115
}

internal/fs/rename.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// license that can be found in the LICENSE file.
44

55
// +build !windows
6-
// +build go1.8
76

87
package fs
98

@@ -14,10 +13,6 @@ import (
1413
"github.com/pkg/errors"
1514
)
1615

17-
func rename(src, dst string) error {
18-
return os.Rename(src, dst)
19-
}
20-
2116
// renameFallback attempts to determine the appropriate fallback to failed rename
2217
// operation depending on the resulting error.
2318
func renameFallback(err error, src, dst string) error {

internal/fs/rename_go17.go

Lines changed: 0 additions & 50 deletions
This file was deleted.

internal/fs/rename_windows.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ import (
1313
"github.com/pkg/errors"
1414
)
1515

16-
func rename(src, dst string) error {
17-
return os.Rename(src, dst)
18-
}
19-
2016
// renameFallback attempts to determine the appropriate fallback to failed rename
2117
// operation depending on the resulting error.
2218
func renameFallback(err error, src, dst string) error {

internal/gps/manager_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func mkNaiveSM(t *testing.T) (*SourceMgr, func()) {
4747

4848
return sm, func() {
4949
sm.Release()
50-
err := removeAll(cpath)
50+
err := os.RemoveAll(cpath)
5151
if err != nil {
5252
t.Errorf("removeAll failed: %s", err)
5353
}
@@ -65,7 +65,7 @@ func remakeNaiveSM(osm *SourceMgr, t *testing.T) (*SourceMgr, func()) {
6565

6666
return sm, func() {
6767
sm.Release()
68-
err := removeAll(cpath)
68+
err := os.RemoveAll(cpath)
6969
if err != nil {
7070
t.Errorf("removeAll failed: %s", err)
7171
}
@@ -95,7 +95,7 @@ func TestSourceManagerInit(t *testing.T) {
9595
}
9696

9797
sm.Release()
98-
err = removeAll(cpath)
98+
err = os.RemoveAll(cpath)
9999
if err != nil {
100100
t.Errorf("removeAll failed: %s", err)
101101
}
@@ -111,7 +111,7 @@ func TestSourceManagerInit(t *testing.T) {
111111
}
112112

113113
sm.Release()
114-
err = removeAll(cpath)
114+
err = os.RemoveAll(cpath)
115115
if err != nil {
116116
t.Errorf("removeAll failed: %s", err)
117117
}
@@ -135,7 +135,7 @@ func TestSourceInit(t *testing.T) {
135135

136136
defer func() {
137137
sm.Release()
138-
err := removeAll(cpath)
138+
err := os.RemoveAll(cpath)
139139
if err != nil {
140140
t.Errorf("removeAll failed: %s", err)
141141
}

internal/gps/remove_go16.go

Lines changed: 0 additions & 48 deletions
This file was deleted.

internal/gps/remove_go17.go

Lines changed: 0 additions & 15 deletions
This file was deleted.

internal/gps/result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func WriteDepTree(basedir string, l Lock, sm SourceManager, sv bool, logger *log
9898
logger.Println(" * ", err)
9999
}
100100

101-
removeAll(basedir)
101+
os.RemoveAll(basedir)
102102

103103
return errors.New("failed to write dep tree")
104104
}

0 commit comments

Comments
 (0)