-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(scoop-(un)hold): Support scoop (un)hold scoop
#5089
Conversation
Allow to disable Scoop itself updates. This configuration have the same function with 'scoop (un)hold scoop'.
I don't think scoop itself should be hold (not updated) since we keep fixing bugs in it, and this shouldn't be fixed IMO. |
@niheaven It is only an option both for user and contributor. Scoop always updates with remote without asking, and it may lose the local changes.🤔 For me, I change the content of scoop for doing some test locally, but the scoop always updates as the remote and loss my change content, I think I can hold the scoop to test the local feature, and enable update quickly if new version published. 😥 |
Yes, I've the same trouble as yours, and I think a better way is auto stashing the uncommited changes and noticing users that they have these changes and scoop has stashed them. Would you like to make this feature and submit PR about that? 'Cos indeed a config option to HOLD update of scoop is so easy to be forgotten... |
Scoop/libexec/scoop-update.ps1 Lines 62 to 66 in 66296dc
I use a warning notification when scoop used to update itself. It effects every time when users want to update scoop. 😁 The stash operation may helpful, but I may not deal with it good. If I make this feature, I will submit a PR to here. 🙌 But I also think the hold should be a choice for uses of scoop. The scoop is an app in |
Wouldn't it be better to move the bucket update code out of |
Just add autostash in #5091, and this could meet your need @yi-Xu-0100 |
Good idea for the function separation and may be done later. |
No, you don't. It will stash uncommitted change on your working branch and then checkout 'develop' branch (the one in config file), all your works will not be lost. |
@niheaven I know that the #5091 will stash uncommitted change and will not lose my work. That is a good job! 👍 But we do not always work on the branch in which we config It will update when I test in another branch, and I need to check out and get my work back every time. It can be simply used |
Hmm, you may not understand my point. Which I mean is, you create a new branch and do some change, commit them, then do another changes, then you want to test it but a All you do after such update are checkout your working branch and Keep coding forward, and you never need to test something that invoke |
Or develop stuff in a separate repo and use it from the editor or create a custom shim that points to the develop repo. 😄 |
That's what I'm against, that one should never hold scoop core since there're ongoing bugfixes and one may omit them if scoop is held. It's something dangerous even if there may be enough notices or warnings. |
@niheaven All right, if you resolutely retain this opinion. Could we add a configuration of Just like windows, it could hold update operation for days. It could be a choice for the minority. |
That's great, and please make it! |
SCOOP_HOLD
SCOOP_HOLD_DAYS
@niheaven The new configuration of |
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.
Change the option name to SCOOP_HOLD
and remove the option after holding days.
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
Co-authored-by: Hsiao-nan Cheung <niheaven@gmail.com>
@niheaven @r15ch13 @rashil2000 I think this feature is ready to be merged, are there other comments? |
I'm fine expect for the |
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.
Looks fine to me
Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
The |
So |
|
But this could not be set via |
Description
Support
scoop (un)hold scoop
.Allow to disable scoop itself updates for one day.
Motivation and Context
The
scoop
is a app in scoop, but it can not to be hold.Now it works. 😁
How Has This Been Tested?
Checklist:
develop
branch.