• ip 💥 uhhhggghhh
  • awk 💥 uhhhggghhh
  • sed 💥 uhhhggghhh
  • grep 💥 uhhhggghhh
  • journalctl 💥 uhhhggghhh
  • brew install docker? Nope! 💥 uhhhggghhh

Having to maintain TWO build chains (when the product only actually runs on Linux) and deal with all the extra tooling and complexity 💥💥💥💥💥💥 uhhhggghhh

  • waldfee@feddit.org
    link
    fedilink
    arrow-up
    12
    ·
    13 hours ago

    my workaround for awk, sed, and grep has been to create symlinks in my $Path that point to gawk, gsed, and ggrep, which you can install through brew. Nix has also been useful to keep my sanity intact, tho it’s a learning curve too, and when Macos updates happen you will need to fix/reinstall it. Can I ask what terminal you are using?

    • paequ2@lemmy.todayOP
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      13 hours ago

      create symlinks in my $Path that point to gawk, gsed, and ggrep

      The problem with this is that scripts assume the BSD versions of those tools. The scripts break if I do that. (I tried doing that.) 😢

      The parts of the code base that can be built on both platforms is littered with:

      if os == linux
        awk <something>
      else if os == mac
        awk <something else>
      
      • Creat@discuss.tchncs.de
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        12 hours ago

        Why not set an $awk var once for the right platform and then use that instead of if-on-every-call? This seems incredibly error prone and verbose for no reason…

        Edit: To be clear I’m aware that it isn’t about the binary, but surely most of the calls have some baseline commonality that could be abstracted? Or: Can the Linux awk be built on bsd or vice versa? Ok fine, if it was the simple, it would’ve probably been the solution…

  • mumblerfish@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    13 hours ago

    I used to run linux in a vm on the work mac, which was fine. Then they managed to block it too. I tried a gentoo prefix, but did not work well enough to be usable on arm. It sucks.

    • paequ2@lemmy.todayOP
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      13 hours ago

      The funny thing is that my manager just told me one of the development workflows is:

      • create a Linux VPS on cloud
      • they have tooling so that local code gets synced to remote Linux
      • SSH into remote Linux
      • code, dev, test, etc

      😐 … 🫲 … 🫱 … 🙌

  • haych@feddit.uk
    link
    fedilink
    arrow-up
    7
    ·
    13 hours ago

    I just started a new job that’s MacOS instead of Windows. I couldn’t be happier.

  • katy ✨@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    7
    ·
    14 hours ago

    i love how much it’s changed in just ten years because i remember in the 2010s and late 2000s, every company would make me use windows despite loving the dev environment of mac (especially snow leopard).

    now it’s almost the opposite with wsl and all

    (pls don’t come at me - i actually use linux on both my laptop and desktop now i’m just saying anecdotally)

  • sepi@piefed.social
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    14 hours ago

    brew install iproute2mac

    Also docker is not on homebrew, but there is an installer for it (or you can use Orbstack, which also provides docker). Not everything is on brew, some things may have separate installers, but a very quick google search will help you find all of these.

    However, journalctl might be not as helpful on mac - you can install it via brew, but it’s not really mac-native.

    As an OG bearded UNIX person, my advice is to learn the platform and stop fighting it - do things on the platform with the native tooling where possible as possible. From the text of your post, it seems to me that you just want to use Linux. I understand how you feel, yet this feeling is signal but not data.

    Good luck and safe travels, friend.