milahu / nixpkgs

Nix Packages collection
MIT License
0 stars 0 forks source link

substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. #35

Closed milahu closed 3 months ago

milahu commented 4 months ago

any fool can make things more complex...

seriously, what the fuck? was this not complex enough?

substituteInPlace source.txt \
  --replace "findme" "newsource"

how about

substituteInPlaceYeahReallyImPrettySureIWantThatMmmmkay source.txt \
  --replace-yeah-really-thanks-for-asking-youre-so-polite-aww "findme" "newsource"

i guess i will just use sed for simple replacements

sed -i 's/findme/newsource/g' source.txt
milahu commented 3 months ago

actually, this is a good change. more verbose, but meh