Better HN
topnewbestaskshowjobs
Log inSign up

wurosh

42 karma · joined Jun 3, 2021 (5y ago) · 11 submissions

Submissions

comment 5y ago · link · parent

Changed from "dev commands" to "the build process". Hopefully that makes the intent of the tool clearer.

comment 5y ago · link · parent

I did want that functionality in the past, but it's not exactly what I'm trying to achieve (but if you find a tool that does, please post it here). I don't want to run arbitrary commands in a container. I want to build software in a container so I don't have to think about its dependencies (as much). I should probably clarify that in the README

comment 5y ago · link · parent

And you have concluded this how? Again, in what way is this arcane power of make that you describe subdued by this tool?

comment 5y ago · link · parent

Fair enough, but this wrapper does not take any power away from make. How much of that power ends up being used is up to the developer. It can literally anything a regular instance of make can do - it just supplies the dependencies. In what way does that have nothing to do with make? If you think there is a better way of phrasing it, I'd be more than happy to adopt it.

comment 5y ago · link · parent

I ended up disabling the check - it's more trouble than it's worth.

comment 5y ago · link · parent

I fixed everything you mentioned. I kept basepath because it handles more edge cases. I improved the option parsing to handle --directory dir, although that is neither here nor there (it's GNU.. -ish). The handling is ugly for the sake of POSIX compatibility - if you can think of a more elegant way to write it let me know, I'd be glad to incorporate it. The exit status of type is clearly defined by POSIX (https://pubs.opengroup.org/onlinepubs/9699919799/utilities/t...). Either way, thank you for the exhaustive list of problems, it really helped - please don't hesitate to open issues with any further observations.

comment 5y ago · link · parent

I usually have it on. Turns out I didn't install the binary on this PC which was silently ignored by my editor. Fixed! Thanks for pointing it out!

comment 5y ago · link · parent

Oh, I didn't know, I spend all of my time working with Linux so I'm a bit out of touch with that space. I'll see if I can come up with a nice short name that doesn't clash

comment 5y ago · link · parent

Interesting. I don't have access to a Mac, so a bit of extra information would be helpful. Could you open an issue on the repo? I know docker desktop uses a virtialized linux kernel on Mac, but I assumed access would still be controlled through user groups. Is there an alternative check I can do? I'd be more than happy to add MacOS specific logic. I'll look into how escape sequences work on Mac as well.

comment 5y ago · link · parent

The README says it all. I kept writing Makefiles that ran build targets in Docker in a shoddy way. I just wrote a slightly less shoddy POSIX sh wrapper that does it for me. It's nothing fancy, but it makes my life easier and it's super simple to use.

11.

A stupid simple make wrapper that makes my life easier(github.com ↗)

69 points · by wurosh · 5y ago · 40 comments