quan-xie / goclipse

Automatically exported from code.google.com/p/goclipse
0 stars 0 forks source link

Incremental builds can erroneously place copies of object files in src directory #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Make a change to b.go and do an incremental build.

src/cmd/main.go

package main
import "fmt"
import "engine"
func main() {
    fmt.Println("hi")
    engine.A()
}

src/engine/a.go

package engine
import "fmt"
import "engine/level"
func A() {
    fmt.Println("hell")
    level.B()
}

src/engine/level/b.go

package level
import "fmt"
func B() {
    fmt.Println("hel")
}

What is the expected output? What do you see instead?
It creates the directory src/engine/src and the file src/engine/src/engine 
where the file src/engine/src/engine is exactly the same as the object file 
pkg/linux_386/engine.a but of course without the suffix ".a"

What version of the product are you using? On what operating system?
Ubuntu

Please provide any additional information below.

Original issue reported on code.google.com by cche...@gmail.com on 11 Jul 2012 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by st...@kryas.com on 19 Jul 2012 at 6:50