• 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

  • paequ2@lemmy.todayOP
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    17 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
      17 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…