godep: fix test for Go 1.7
This commit is contained in:
parent
2cff23231c
commit
fad6ec2123
1 changed files with 10 additions and 6 deletions
|
@ -23,16 +23,20 @@ class Godep < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
ENV["GO15VENDOREXPERIMENT"] = "0"
|
||||
ENV["GOPATH"] = testpath.realpath
|
||||
(testpath/"Godeps.json").write <<-EOS.undent
|
||||
(testpath/"Godeps/Godeps.json").write <<-EOS.undent
|
||||
{
|
||||
"ImportPath": "github.com/tools/godep",
|
||||
"GoVersion": "go1.6",
|
||||
"Deps": []
|
||||
"GoVersion": "go1.7",
|
||||
"Deps": [
|
||||
{
|
||||
"ImportPath": "go.googlesource.com/tools",
|
||||
"Rev": "3fe2afc9e626f32e91aff6eddb78b14743446865"
|
||||
}
|
||||
]
|
||||
}
|
||||
EOS
|
||||
(testpath/"src/foo/bar/Godeps").install "Godeps.json"
|
||||
cd("src/foo/bar") { system bin/"godep", "path" }
|
||||
system bin/"godep", "restore"
|
||||
assert File.exist?("src/go.googlesource.com/tools/README")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue