News for hackers. Stuff that matters.
Re:Debian Running on Rust Coreutils by nicoburns on Tuesday March 09, 2021 @05:39AM (#26397412)
Have you seen Just? https://github.com/casey/just

It's make-like but supposedly improves on some of the arcane aspects of make (I can't judge how successful it is at that as I've never used make in anger).

Re:Debian Running on Rust Coreutils by jamwaffles on Tuesday March 09, 2021 @06:10AM (#26397667)
We use it a bit for https://github.com/embedded-graphics/embedded-graphics and I have to say I love it. It's just the right balance between configuration variables/constants and "a folder full of bash scripts". I highly recommend giving Just a try.
Re:Debian Running on Rust Coreutils by bluejekyll on Tuesday March 09, 2021 @12:43PM (#26401301)
One of the reasons I know I still rely on Make instead of Just, is about how available make is, and pretty much any tool (be it a new implementation of make in Rust or Just) will have to deal with the fact that make is already a default on so many systems.

That makes make a great entry point for any project. Does anyone have a general suggestion about how to work around this? The goal being, sync a project and not need to install anything to get going. One thing I do sometimes is to use make as the entry point, and it has an init target to install the necessary tools to get going (depends on who I know to be the target audience).

Re:Debian Running on Rust Coreutils by berkes on Tuesday March 09, 2021 @03:07PM (#26403455)
This sounds like what I do: Makefile with distinct steps: install, build, test, lint, deploy. Those steps call underlying tools, depending on the platform, framework, language.

E.g. in one project it will install rbenv, bundle, npm, yarn etc. Call Rake, npx, that odd docker wrapper, etc. Or deploy with git in one project and through capistrano or ansible in another.

As a dev, in daily mode, all you need is 'make lint && make test && make deploy'. All the underlying tools and their intricacies are only needed when it fails or when you want to change stuff.

Re:Debian Running on Rust Coreutils by bluejekyll on Tuesday March 09, 2021 @03:29PM (#26403746)
Yeah. Exactly. I do this when I think there will be users who don’t already have all the dev tools installed, and I don’t want them to have to download and install everything.
Re:Debian Running on Rust Coreutils by andoriyu on Tuesday March 09, 2021 @02:42PM (#26403088)
yeah, until you meet the system with different make, and now you have to install GNU/Make.
Re:Debian Running on Rust Coreutils by cytzol on Tuesday March 09, 2021 @08:01AM (#26398368)
I love Just, but I love it because it's not a build system — I already have a build system, I just need a standard "entry point" to all my projects so each command a user could use to interact with the actual build system is in the same place for each project. I wouldn't build, say, a C project with Just and Just alone, where it tracks the dependencies between files and only rebuilds what's necessary.

So while it's replaced one use of Make for me, I can't rightly call it a Make replacement.

Re:Debian Running on Rust Coreutils by nicoburns on Tuesday March 09, 2021 @09:47AM (#26399267)
Would you build a C project with make? One might argue that C could do with a better build system like other languages have. I don't use C much, but I hear that these exist.
Re:Debian Running on Rust Coreutils by candied_scarf on Tuesday March 09, 2021 @10:39AM (#26399818)
i wont use this because the author sucks up all justfiles files with no way for a user to opt out and isnt fully clear on this. use it on some private or company thing that accidentally goes public, oops he has your file now in his repo.

if it was opt-in to him monitoring i might be more open. maybe i should fork and change the filename to keep this from happening

Re:Debian Running on Rust Coreutils by audience_mem on Thursday March 11, 2021 @04:10AM (#26421925)
What are you talking about? Where does he "suck up" all Justfiles?
Re:Debian Running on Rust Coreutils by candied_scarf on Thursday March 11, 2021 @08:07AM (#26423544)
Re:Debian Running on Rust Coreutils by audience_mem on Thursday March 11, 2021 @08:16AM (#26423625)
I see. Interesting.
Re:Debian Running on Rust Coreutils by skore on Tuesday March 09, 2021 @06:03AM (#26397609)
I've seen it before but discarded it because since my workflow is heavily file-based, I DO need makes capacity as a build system, not just a task runner. Will check it out to see whether that changed.

edit: Yeah, I can't see how I can make it work for a file-based approach.