fast-nail-55400
10/05/2021, 9:06 PMgo_mod
targets. This would allow multiple Go modules in a repository to use different Go SDK versions (or options to those SDKs) by specifying a different “go_sdk” target.hundreds-father-404
10/05/2021, 9:17 PMhappy-kitchen-89482
10/05/2021, 10:02 PMfast-nail-55400
10/05/2021, 10:03 PMAnother advantage of them being targets is that you could potentially build the tool from code in the repo!Which Bazel actually supports for tools
fast-nail-55400
10/05/2021, 10:03 PMwitty-crayon-22786
10/05/2021, 10:04 PMaverage-vr-56795
10/05/2021, 11:00 PM> Another advantage of them being targets is that you could potentially build the tool from code in the repo!
Which Bazel actually supports for toolsI will mention... Very badly, currently. There's an issue where you kind of want some mutual recursion going on in how these tools are resolved, and Bazel doesn't offer any of that. So say you need to find a JDK and a Scala toolchain which are compatible (or say you need to do some Scala compilation in order to bootstrap your Java toolchain) - there's no nice way to do that in Bazel right now. One of the toolchains just needs to be picked/configured/built first, and then the other, and they can't factor into each other's configuration. And this multiplies in complexity when you consider that some of these things may be being built on different platforms (e.g. local vs remote). It's a hard problem, and I don't entirely blame Bazel for how it approaches it, but... It's a messy can of worms.
bored-art-40741
10/06/2021, 1:48 AMbored-art-40741
10/06/2021, 1:49 AMbored-art-40741
10/06/2021, 1:50 AMworried-salesclerk-37834
10/13/2021, 8:36 PMterraform
config block where a version constraint string can be passed. I'm not sure how deep you all want to parse hcl...