I'm looking to integrate pants with <wizcli docker...
# general
g
I'm looking to integrate pants with wizcli docker container scanning. My question is around how best to do that. I think using adhoc_tool is the easiest way to do it, but what I'm wondering is how can I put that behind the check goal? I also don't know if that even makes sense 🙂
w
Yeah, by default it would make sense to try it out using adhoc tools (https://www.pantsbuild.org/2.19/docs/ad-hoc-tools/integrating-new-tools-without-plugins) I think this would make it a
run
goal by default, unsure offhandedly if you could turn that into a
check
I think there was a ticekt to expose adhoc tools to some more goals, but
pants run
seems reasonable as a start
👍 1
g
system_binary + adhoc_tool, here we come!
w
Although, I might be making up the inability to use it with a goal - I haven't dug into it too much recently as my workflow with adhoc tools works for me, https://github.com/pantsbuild/example-adhoc I see the
export-codegen
goal used here
./pants export-codegen openapi:webapp-js-bindings
I haven't tested that, but I just assumed that would have been
pants run
.... interesting
g
weird, nothing actually references that goal in the adhoc_tool target definition.
w
Yeah, I haven't tested it though - so I have no idea if it works. But I was quite surprised to read that a few minutes ago
🫠 1
s
There is also
code_quality_tool
in 2.20
👀 1
g
interesting idea.