Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: generate doesn't set $GOLINE, $DOLLAR #13124

Closed
ghost opened this issue Nov 2, 2015 · 1 comment
Closed

cmd/go: generate doesn't set $GOLINE, $DOLLAR #13124

ghost opened this issue Nov 2, 2015 · 1 comment
Milestone

Comments

@ghost
Copy link

ghost commented Nov 2, 2015

$ go version
go version go1.5.1 linux/amd64

$ cat main.go

package main

//go:generate env
func main() {
}

$ go generate | grep -e GOFILE -e GOLINE -e DOLLAR
GOFILE=main.go

expect

$ go generate | grep -e GOFILE -e GOLINE -e DOLLAR
GOFILE=main.go
GOLINE=3
DOLLAR=$

@rakyll rakyll added this to the Go1.6 milestone Nov 2, 2015
@gopherbot
Copy link

CL https://golang.org/cl/16537 mentions this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants