-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running latest version notifies of new release #1966
Comments
Yes this is it:
We could fix it by prefixing the hash (https://github.com/shaarli/Shaarli/blob/master/.github/workflows/docker-latest.yml#L30) with
As I noted in #1964, some parts of the updater code still refer to the |
I checked the ~/GIT $ git clone -b stable https://github.com/shaarli/Shaarli/
~/GIT $ cd Shaarli
~/GIT/Shaarli (stable=)$ git grep HEAD
[...]
application/updater/Updater.php:<<<<<<< HEAD
[...]
index.php:<<<<<<< HEAD So I decided to delete it, create a new ~/GIT/Shaarli (stable=)$ git checkout master
~/GIT/Shaarli (master=)$ git branch -D stable
~/GIT/Shaarli (master=)$ git checkout v0.12.2
~/Shaarli ((v0.12.2))$ git checkout -b stable
~/GIT/Shaarli (stable)$ make test # OK
~/GIT/Shaarli (stable)$ git push -uf origin stable
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/shaarli/Shaarli
+ 7a9cacc...c2127f1 stable -> stable (forced update)
Branch 'stable' set up to track remote branch 'stable' from 'origin'.
~/GIT/Shaarli (stable=)$
This should be fixed, can you check? |
Thanks @nodiscc! Yes, I get notified to update to After digging a little more, there are multiple things in motion here:
|
Always use 'release' branch instead. Also treat commit hash as dev version Fixes shaarli#1966
Always use 'release' branch instead. Also treat commit hash as dev version Fixes shaarli#1966
Always use 'release' branch instead. Also treat commit hash as dev version Fixes shaarli#1966
* Remove 'updates.check_updates_branch' setting Always use 'release' branch instead. Also treat commit hash as dev version Fixes #1966 * Revert auto formatting * linter * Updater: remove updates.check_updates_branch setting
With the recent changes in how we handle the
latest
Docker build, when we run the latest image - i.e. master - we get a notification saying that a new release is available.I believe it's because before we were ignoring that check if the current version was
dev
, while now the current version is the commit hash.Also, locally I got a message to update to 0.12.2, which is normal, but on my own instance I got a message to upgrade to 0.11.1. There is maybe another underlying issue in the code.
The text was updated successfully, but these errors were encountered: