https://pantsbuild.org/ logo
f

freezing-lamp-12123

08/16/2022, 5:25 PM
okay, so i have a project with a mix of python, go, jsonnet and a whole giant heap of bash scripts that are written with the gnu variants of coreutils + friends in mind now — i’m almost settled on for mac laptops to provide a complete user installed shell + coreutils setup through an isolated homebrew instance (talk me out of it please šŸ˜‚) any pointers on how to provide such a dependency conditionally based on pants is running on laptop va ci? or is there some other tree i should be barking up at? 😁 thanks in advance šŸ™
h

hundreds-father-404

08/16/2022, 5:31 PM
i’m almost settled on for mac laptops to provide a complete user installed shell + coreutils setup through an isolated homebrew instance
@enough-analyst-54434 has thoughts on macOS šŸ˜‰ Personally, I love macOS, but not for technical reasons. More for things like integration with iOS, and the trackpad. And M1s are wicked fast At Toolchain, we have a Brewfile we use for our mac developers w/ isolated homebrew. One thing to consider is that your production environment is likely to be Linux, right?
f

freezing-lamp-12123

08/16/2022, 5:31 PM
that is entirely correct
h

hundreds-father-404

08/16/2022, 5:32 PM
what's the motivation for using macs for all your devs? would they have access to something like a Linux dev box?
f

freezing-lamp-12123

08/16/2022, 5:33 PM
yeah, i think the choice of using standard tooling vs gnu in PATH is not possible to standardise, and — i was hoping with something like pants that we did not have to, if the premise is that everything ideally would be run by pants
all developers have macs at our org, and M1s are getting added as laptops are replaced at a pretty quick pace
e

enough-analyst-54434

08/16/2022, 5:35 PM
I definitely have no understanding of wanting to run a foreign OS as your dev env. But it seems like everyone thinks this is a good idea.
āž• 1
šŸ˜† 3
f

freezing-lamp-12123

08/16/2022, 5:43 PM
good idea, or unfortunate requirement? — either way, here we are 🤪
so — just as a poc and a quick hack — would it be possible through a macro that defines different configurations of the same dependency based on the os or env var perhaps?
h

hundreds-father-404

08/16/2022, 5:47 PM
Would what in specific be possible?
f

freezing-lamp-12123

08/16/2022, 5:48 PM
i’m thinking — on linux do pretty much nothing, or perhaps copy in a file or something and on macos — unpack a bundle from some external source and setup PATH accordingly
6 Views