https://pantsbuild.org/ logo
#general
Title
# general
b

bumpy-spoon-55438

09/15/2022, 6:56 AM
Hi, does pants run
go generate
before compiling?
h

happy-kitchen-89482

09/15/2022, 2:16 PM
cc @fast-nail-55400
f

fast-nail-55400

09/15/2022, 3:02 PM
Pants does not have the ability to run
go generate
currently. Also, I recall that the
go
tool does not run
go generate
either before compiling. You should just be able to run
go generate
directly and commit the output as would be done if you were using
go build
instead of Pants for builds.
h

hundreds-father-404

09/15/2022, 3:17 PM
Feel free to open a GitHub issue if you think it would make sense for Pants to run
go generate
though! It seems to make sense to me