Open MichaelSnowden opened 3 months ago
I don't have permissions to open a PR, but this can be fixed by moving line 196 - g.setEnv()
- above where g.split(...)
is called. The g.split(...)
func depends on variables like $GOFILE
to be available via g.getEnv()
but currently isn't due to the ordering. You can see this in the original generate
source code as well.
As an alternative to https://github.com/temporalio/temporal/pull/5620, I was pointed to this tool as a way to cache and speed up
go generate
. However, I can't get it to work locally. It looks like it might be because of our usage of$GOFILE
in ourgo:generate
directives? For example:As you can see, the
-source
argument has nothing after it.Here's what the directive looks like in that file:
Am I right in suspecting that this is because
$GOFILE
replacements are not supported? If so, is there a plan to fix that any time soon? Thank you.