Google Groups

Re: [go-nuts] Proposal: ban relative import paths

Andrew Gerrand Apr 2, 2013 5:47 PM
Posted in group: golang-nuts

On 3 April 2013 11:14, Robert Johnstone <> wrote:
an explanation about why relative imports should be restricted as a special case.

See my earlier post in this thread about why relative imports are a bad idea.

The only reason the go tool supports relative imports is to run the compiler tests, which predate the go tool and the concept of GOPATH. I would prefer to refactor the compiler tests so that relative imports are not used, and remove support for relative imports from the go tool entirely.