@@ -132,7 +132,7 @@ var _ = Describe(".BuildIn", func() {
132
132
133
133
var _ = Describe (".CompileTest" , func () {
134
134
Context ("a remote package" , func () {
135
- const remotePackage = "github.com/onsi/ginkgo/v2/ types"
135
+ const remotePackage = "github.com/onsi/ginkgo/types"
136
136
137
137
It ("compiles the specified test package" , func () {
138
138
compiledPath , err := gexec .GetAndCompileTest (remotePackage )
@@ -200,7 +200,7 @@ var _ = Describe(".CompileTestWithEnvironment", func() {
200
200
}
201
201
202
202
Context ("a remote package" , func () {
203
- const remotePackage = "github.com/onsi/ginkgo/v2/ types"
203
+ const remotePackage = "github.com/onsi/ginkgo/types"
204
204
205
205
It ("compiles the specified test package with the specified env vars" , func () {
206
206
compiledPath , err := gexec .GetAndCompileTestWithEnvironment (remotePackage , env )
@@ -223,9 +223,7 @@ var _ = Describe(".CompileTestWithEnvironment", func() {
223
223
})
224
224
225
225
var _ = Describe (".CompiledTestIn" , func () {
226
- const (
227
- target = "github.com/onsi/gomega/gexec/_fixture/firefly"
228
- )
226
+ const target = "github.com/onsi/gomega/gexec/_fixture/firefly"
229
227
230
228
var (
231
229
original string
@@ -237,7 +235,6 @@ var _ = Describe(".CompiledTestIn", func() {
237
235
original = os .Getenv ("GOPATH" )
238
236
gopath , err = gutil .MkdirTemp ("" , "" )
239
237
Expect (err ).NotTo (HaveOccurred ())
240
- copyFile (filepath .Join ("_fixture" , "firefly" , "main.go" ), filepath .Join (gopath , "src" , target ), "main.go" )
241
238
Expect (os .Setenv ("GOPATH" , filepath .Join (os .TempDir (), "emptyFakeGopath" ))).To (Succeed ())
242
239
Expect (os .Environ ()).To (ContainElement (fmt .Sprintf ("GOPATH=%s" , filepath .Join (os .TempDir (), "emptyFakeGopath" ))))
243
240
})
@@ -254,7 +251,7 @@ var _ = Describe(".CompiledTestIn", func() {
254
251
})
255
252
256
253
Context ("a remote package" , func () {
257
- const remotePackage = "github.com/onsi/ginkgo/v2/ types"
254
+ const remotePackage = "github.com/onsi/ginkgo/types"
258
255
259
256
It ("compiles the specified test package" , func () {
260
257
compiledPath , err := gexec .GetAndCompileTestIn (gopath , remotePackage )
0 commit comments