WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm... not sure. I don't know if we can use go generate with the current setup reliably. As you discovered, we used to try and hack our .a files into locations that the top level go command would work with. The new setup uses import configs, and we've written our own variations on these commands that work more reliably for us. The top level commands like go build and go generate don't allow us to provide the import config so don't really work with the new paradigm. We should probably get rid of that rule from Pleasings.
I always felt that the go generate directives didn't make that much sense when you're using a build system like Please. Can you write a genrule() that runs the same command from the //go:generate comment, or is there some magic that go generate provides that's non-trivial to replicate? If so, we could look into adding a generate subcommand to the please_go tool.
Alternatively, if you're following the go workflow, you'd run go generate on the command line and check the result in.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the
go_generaterule defined in:https://github.com/thought-machine/pleasings/blob/master/go/go_generate.build_defs
It's failing with the following error:
I think this rule got moved from go_rules.build_defs to pleasings, then some point after that this diff removed _LINK_PKGS_CMD:
ea9357d?diff=split
I think it should be replaced by
gen_import_cfg, which is always defined as:What's the best way to get this into go_generate.build_defs?
Beta Was this translation helpful? Give feedback.
All reactions