News for hackers. Stuff that matters.
Re:Why I recommend Renovate over any other dependency update... by keybored on Friday April 12, 2024 @10:56AM (#40013651)
Why does it seem to these tools have converged on the bot-makes-PR implementation? Why not a tool that bumps dependencies and let’s you propose yourself? I can’t use one of these tools because the integration is GitHub-only.
Re:Why I recommend Renovate over any other dependency update... by jamietanna on Friday April 12, 2024 @11:04AM (#40013761)
Renovate isn't special with how it authenticates - you can run it as your own user ie https://github.com/jamietanna/oapi-codegen/pull/12 and Renovate runs against GitLab, Bitbucket and I believe other platforms too
Re:Why I recommend Renovate over any other dependency update... by zer00eyz on Friday April 12, 2024 @01:13PM (#40015251)
>> Why not a tool that bumps dependencies and let’s you propose yourself?

SO it opens an issue and gives you a patch file... Or emails it to you?

> Why does it seem to these tools have converged on the bot-makes-PR implementation?

Because git and the PR is the common choke point that every one knows and loves. A lot of dev's look down on "patches"... there are tons of people who happily use linux who think that all kernel devs are stupid cause of bugzila/patches and email could not possibly work.

Re:Why I recommend Renovate over any other dependency update... by keybored on Friday April 12, 2024 @01:44PM (#40015573)
Patch files? Normal tools change files. If I `sed -i` in my project I just change the files in my project. Then I (separately) can add and commit them. Same for (for example) linting tools. This bot-PR workflow is outside of that normal.
Re:Why I recommend Renovate over any other dependency update... by zer00eyz on Friday April 12, 2024 @02:12PM (#40015935)
A PR is easy to automate, hook into, an preserves ownership of the commit.

Yes it bypasses YOUR workflow, but a PR works for everyone who uses GitHub.

If you want something else that works for everyone who uses GitHub it's an issue, or an email with a patch file. Why a patch file. DO you want to own the change the bot suggested? There are a lot of orgs where the ownership matters more than the linting.

You could just make the change yourself, sure, and then run it through your normal workflow... then your the author and commuter of the change...

Re:Why I recommend Renovate over any other dependency update... by keybored on Saturday April 13, 2024 @03:50PM (#40025523)
I stepped into the wrong workflow synagogue it seems.
Re:Why I recommend Renovate over any other dependency update... by partdavid on Friday April 12, 2024 @01:53PM (#40015695)
You mean on some individual person's laptop when that person remembers to run it?
Re:Why I recommend Renovate over any other dependency update... by keybored on Friday April 12, 2024 @03:00PM (#40016448)
Like most things.
Re:Why I recommend Renovate over any other dependency update... by OJFord on Saturday April 13, 2024 @04:53AM (#40021597)
But the whole point is not to have to do that. What you're asking for is basically just `npm upgrade` or `cargo upgrade` or whatever? The point of Renovate, Dependabot etc. is exactly the automated/scheduled running of those package manager updates.
Re:Why I recommend Renovate over any other dependency update... by keybored on Saturday April 13, 2024 @03:49PM (#40025511)
Sigh. The answer to why they are this way is that it’s the whole point that they are this way.
Re:Why I recommend Renovate over any other dependency update... by OJFord on Sunday April 14, 2024 @05:01AM (#40029772)
Well yes? You're complaining that a motorbike has an engine when you're perfectly capable of and would rather power it with your own two legs.
Re:Why I recommend Renovate over any other dependency update... by keybored on Monday April 15, 2024 @02:10AM (#40037504)
What a great comparison.
Re:Why I recommend Renovate over any other dependency update... by MajimasEyepatch on Friday April 12, 2024 @01:47PM (#40015608)
If you had to submit the PR yourself, you’d have to remember to do it in the first place (and take the time to do it). Bumping a bunch of patch version numbers has never been the hard part and isn’t really what these tools solve. Their purpose is to reduce the effort involved to an absolute minimum so there are no excuses to fall behind on updates. Some of these tools, like Renovate, even have the ability to automatically merge the PR if the tests pass, meaning there’s zero human involvement.

If you had to submit the PR yourself, then these tools would be no different than an automated Jira ticket that’s created once per sprint.

(The actual hard part of all this is having good, meaningful, automated tests, but that can’t be solved by a bot.)

Re:Why I recommend Renovate over any other dependency update... by keybored on Friday April 12, 2024 @03:03PM (#40016482)
> If you had to submit the PR yourself, you’d have to remember to do it in the first place (and take the time to do it). Bumping a bunch of patch version numbers has never been the hard part and isn’t really what these tools solve. Their purpose is to reduce the effort involved to an absolute minimum so there are no excuses to fall behind on updates. Some of these tools, like Renovate, even have the ability to automatically merge the PR if the tests pass, meaning there’s zero human involvement.

I’ve seen a fair number of open “dependabot” PRs just lying around.

Re:Why I recommend Renovate over any other dependency update... by sunshowers on Friday April 12, 2024 @02:46PM (#40016323)
Renovate lets you run it locally as a oneshot Docker container (similar to a binary) with a personal access token, creating the PRs under your name.

Here's an example (made this repo to test a Renovate issue against): https://github.com/sunshowers/renovate-test-2