Use `buildpath`: `ENV["GOPATH"] = buildpath/'vendor'`