Hi all, What's the recommended way to automate the...
# general
a
Hi all, What's the recommended way to automate the Go
wire
CLI during a build? My goal is to have
wire
generate a file that is then used as a source in my
go_package
. I have the tool managed via
go.mod
. I've been struggling to get
run_shell_command
to work correctly. Is there a common alternative pattern, or pointers on what I might be doing wrong?
f
run_shell_command
is designed to be invoked with the `run`goal. You want
shell_command
or
adhoc_tool
if you want to generate code. That said, I don't know if
go_package
understands how to consume outputs from
shell_command
/
adhoc_tool
(given the Go backend was written before the shell / adhoc backends).