-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Do not update apps if it comes from git #7505
Conversation
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
@@ -399,6 +399,10 @@ public function isUpdateAvailable($appId) { | |||
$apps = $this->appFetcher->get(); | |||
} | |||
|
|||
if ($this->isInstalledFromGit($appId) === true) { | |||
return false; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we move this check one up ... just to return earlier in the method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works for the 99% use case for me! Lets do this.
What happens if a developer accidentally packages the |
@ChristophWurst Yup! |
|
Codecov Report
@@ Coverage Diff @@
## master #7505 +/- ##
============================================
+ Coverage 51.11% 51.16% +0.05%
+ Complexity 24903 24868 -35
============================================
Files 1601 1601
Lines 94778 94691 -87
Branches 1368 1368
============================================
+ Hits 48445 48452 +7
+ Misses 46333 46239 -94
|
We could also refuse to install an app if it has a .git in it ;) |
@ChristophWurst @skjnldsv Another idea: only reject this if the nextcloud itself is also a git clone (update channel === git) 😉 |
@BernhardPosselt Mentioned that we maybe should also add checks for other typical VCS systems and have a blacklist:
Anything else? |
@MorrisJobke I would say no, because I sometimes uses default apps without using their git repo :) |
cc @Henni for review as he also had this issue :) |
Okay - let's go for the |
We had a lot of issues as devs by those auto update...
Fixes #7011