News for hackers. Stuff that matters.
Re:GitHub Super Linter: one linter to rule them all by FalconSensei on Thursday June 18, 2020 @12:18PM (#23564579)
Have to install docker to run a linter... Nah, thanks.
Re:GitHub Super Linter: one linter to rule them all by GaryNumanVevo on Thursday June 18, 2020 @12:20PM (#23564607)
Docker is probably the least annoying solution, would you rather install linters for 40 different languages on your system?
Re:GitHub Super Linter: one linter to rule them all by ori_b on Thursday June 18, 2020 @12:24PM (#23564661)
I'd rather not run a linux VM for this, so yes. It should be possible to isolate it to /opt/github-linter/* on my BSD machines, or put into a nix package.

(Also, I guess this is one more reason that docker is a big red flag for 'hastily hacked together unportable software that would be hell to ship.')

Re:GitHub Super Linter: one linter to rule them all by philsnow on Thursday June 18, 2020 @02:28PM (#23566073)
I'm 100% fine with running this and similar tools with docker to avoid polluting my machine with dependencies / un-uninstallable cruft and also to allow the people making such tools to concentrate on the tools and not supporting installation on 30 different platforms. Hell, docker even works on windows these days.

but your comment made me think of this meme, which I can't not link to https://i.imgflip.com/24ac74.jpg

text for people who don't want to click:

    It works on my machine

    Then we'll ship your machine

    And that is how docker was born
Re:GitHub Super Linter: one linter to rule them all by bastardoperator on Thursday June 18, 2020 @12:58PM (#23565073)
Look at the Dockerfile, it's all there. All 143 lines and 2 bash scripts. Are you about to introduce a new BSD ports package?
Re:GitHub Super Linter: one linter to rule them all by oefrha on Thursday June 18, 2020 @12:24PM (#23564665)
Install linters as needed / pick up what's already installed could be a feasible option.
Re:GitHub Super Linter: one linter to rule them all by hobofan on Thursday June 18, 2020 @12:28PM (#23564722)
Sure, if you want to get a billion issues reported that are caused by outdated versions of the linters.
Re:GitHub Super Linter: one linter to rule them all by oefrha on Thursday June 18, 2020 @12:30PM (#23564745)
Outdated version could simply be counted as nonexistent, then a new version would be installed "as needed".
Re:GitHub Super Linter: one linter to rule them all by hobofan on Thursday June 18, 2020 @12:42PM (#23564891)
And then you'd need to figure out how to install that new version side-by-side with the existing one, or otherwise you will upgrade and break the existing setup of a lot of people. That is also not always trivial, especially if you have an existing setup like e.g. system python + pyenv managed python. Should the linters then be installed via the system package manager? How would you handle that across many different platforms? And now you multiply all that effort by the number of linters you are packaging, because almost none of them share a common toolchain.

It just opens a whole box of problems, that do nothing to actually further the tool you are building.

Re:GitHub Super Linter: one linter to rule them all by oefrha on Thursday June 18, 2020 @12:57PM (#23565058)
The "install as needed" linters of course should live in their own separate universe, not scattered everywhere.

Alternatively you ask people to install linters themselves, and refuse to run if they're outdated. Language X devs likely already have reasonably up-to-date language X linters installed, or know how to install them anyway.

A lot of effort: probably. Many different platforms: there are three platforms that carry any weight. See GitHub Actions runner environments.

Docker on the dev machines is easy for the project, but (1) performance is subpar on macOS and Windows due to virtualization; (2) it also gets outdated; (3) the image is easily gone if you like pruning, then you need to pull the image all over again. (Thankfully the image isn't huge, ~380MB at the moment.)

Re:GitHub Super Linter: one linter to rule them all by jakeogh on Thursday June 18, 2020 @03:12PM (#23566583)
Portage solved all that long ago. Parallel versions are called slots.
Re:GitHub Super Linter: one linter to rule them all by pensatoio on Thursday June 18, 2020 @04:37PM (#23567726)
Installing Docker is so easy, and it’s significantly easier than installing individual tools when we’re talking about shared tooling and local development. But hey, you do you!
Re:GitHub Super Linter: one linter to rule them all by benatkin on Thursday June 18, 2020 @04:50PM (#23567855)
I'm about to uninstall Docker. I have a 128GB Macbook Air and it's taking up 17 gigs after some light use. I'll be using it from CI instead. I like it but it isn't a no-hassle option. It depends on the project whether it's easier. I prefer to avoid it if I can.
Re:GitHub Super Linter: one linter to rule them all by belval on Thursday June 18, 2020 @05:57PM (#23568572)
Not to be that guy, but I feel the 128GB drive is more to blame than Docker at this point. 17GB just isn't that outlandish these days.
Re:GitHub Super Linter: one linter to rule them all by manquer on Saturday June 20, 2020 @12:01PM (#23584636)
You can prune unused containers and images if didn’t know it already