@@ -52,7 +52,7 @@ func main() {
52
52
h .TempFile ("src/" + root + "/thing.go" , m )
53
53
origm := `{
54
54
"dependencies": {
55
- "github .com/not/used ": {
55
+ "notexist .com/other.git ": {
56
56
"version": "2.0.0"
57
57
},
58
58
"github.com/Sirupsen/logrus": {
@@ -87,22 +87,22 @@ func main() {
87
87
}
88
88
89
89
h .TempFile ("src/" + root + "/manifest.json" , origm )
90
- h .Run ("remove" , "github .com/not/used " )
90
+ h .Run ("remove" , "notexist .com/other.git " )
91
91
92
92
manifest = h .ReadManifest ()
93
93
if manifest != expectedManifest {
94
94
t .Fatalf ("expected %s, got %s" , expectedManifest , manifest )
95
95
}
96
96
97
- if err := h .DoRun ([]string {"remove" , "-unused" , "github .com/not/used " }); err == nil {
97
+ if err := h .DoRun ([]string {"remove" , "-unused" , "notexist .com/other.git " }); err == nil {
98
98
t .Fatal ("rm with both -unused and arg should have failed" )
99
99
}
100
100
101
- if err := h .DoRun ([]string {"remove" , "github .com/not/present " }); err == nil {
101
+ if err := h .DoRun ([]string {"remove" , "notexist .com/third.git " }); err == nil {
102
102
t .Fatal ("rm with arg not in manifest should have failed" )
103
103
}
104
104
105
- if err := h .DoRun ([]string {"remove" , "github .com/not/used " , "github .com/not/present " }); err == nil {
105
+ if err := h .DoRun ([]string {"remove" , "notexist .com/other.git " , "notexist .com/third.git " }); err == nil {
106
106
t .Fatal ("rm with one arg not in manifest should have failed" )
107
107
}
108
108
@@ -111,7 +111,7 @@ func main() {
111
111
}
112
112
113
113
h .TempFile ("src/" + root + "/manifest.json" , origm )
114
- h .Run ("remove" , "-force" , "github.com/pkg/errors" , "github .com/not/used " )
114
+ h .Run ("remove" , "-force" , "github.com/pkg/errors" , "notexist .com/other.git " )
115
115
116
116
manifest = h .ReadManifest ()
117
117
if manifest != `{
0 commit comments