question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autoupdate replacing a sha with 'older' release

See original GitHub issue

I use a pre-commit hook with a rev pointing to a sha. When I use autoupdate it changes the rev to latest release, but that release is older than the previous sha. I think it would make sense not to change the rev if it’s pointing to a commit after the latest release.

Of course, this can be circumvented by passing the other repos to autoupdate but it is a bit cumbersome. I can also update that specific hook using --bleeding-edge but I don’t really want the latest commit, just the commit where a specific feature is introduced. This might also be useful for pre-commit.ci where AFAIK you cannot specify which repos should be updated.

Just to clarify by older I’m not thinking of dates instead I’m refering to the order they appear in history for the specific branch. I’m not sure if this notion can be generalized across branches.

If you think that it makes sense to implement this and that it can be tackled by someone without much familiarity with the codebase I can try to provide a PR for this.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Dec 22, 2020

I don’t think this really makes sense for pre-commit, you’re essentially asking for autoupdate --no-autoupdate which would just be “don’t run autoupdate”.

I think for pre-commit.ci, adding a special comment to freeze a version might make sense? but preventing autoupdates actually makes the system less efficient and more expensive (when everything is on the latest versions there’s much less cache data required for oddball versions) so I don’t really want that feature to exist

Even better would be to convince the upstream to make a release with the new feature 😃

0reactions
asottilecommented, Dec 23, 2020

yep!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows Update SHA-1 based endpoints discontinued for ...
In compliance with the Microsoft Secure Hash Algorithm (SHA)-1 deprecation policy, Windows Update is discontinuing its SHA-1 based endpoints in late July 2020....
Read more >
Autoupdate | Scoop
Auto Update is a tool for package maintainers. It automatically checks for new versions of an app and updates the manifest accordingly. It...
Read more >
Automatic Updates for Windows 7 After 2020 - How to Get Them
In this video, I'm going to show you how to get automatic updates for Windows 7 after 2020. This is important because Microsoft...
Read more >
Auto Update feature for Core/Supervisor
Is there a way to auto update to latest dot version of a previous release ... and ha core, please read through all...
Read more >
Auto Update policy - Chrome Enterprise and Education Help
For this reason, older Chrome devices cannot receive updates indefinitely to ... Google will publish a model's AUE date on this page after...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found