-
Notifications
You must be signed in to change notification settings - Fork 903
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
Use Remembered Arguments for a Package During Upgrades #797
Comments
Hi @ferventcoder, is this enabled by default now or do I still need to run |
@aaccioly not enabled by default. You can always check with |
Keep in mind there is a known issue and reproing it or determining the cause is quite difficult - #1443 |
This needs to be re-opened. |
This need to be reopened. Latest versions for some time now actually if you perform a
Note the NotepadPlusPlus MSI switch being passed to EDIT: This does appear to be connected to this issue and the option
Even this comment of |
@bcurran3 @ferventcoder Hey guys can this be re-opened please? See my comment above and let me know if this is already a fix underway or whether you need additional details above what I already posted. Thanks! |
@CollinChaffin We don't reopen something that has been completed. You are seeing a bug with it, which means a new issue. This is by the way corrected in the beta. 347f09f |
@ferventcoder Then why with today's beta is it STILL adding old remembered arguments from a single package I installed over a year ago? Where are remembered arguments stored so I can clear this out and if what you are saying is correct I'm still not clear why I need to do so. EDIT: And understand that whey I say it adds an old argument - it adds it for HUNDREDS of package upgrades, when it applies to ONE. For anyone else having this issue and wanting to blank out old remembered arguments, looks like they are stored in |
@ferventcoder I just realized this is exactly what you called a MAJOR BUG in issue #1443 - same issue. 400 package upgrades will carry a single argument (like the mentioned 32/64 bit snafoo when NPP arg was carried to VLC and other packages). In my case, I can show a log with today's beta applying a switch of It looks like issue #1443 is still at least listed as OPEN and at some point someone understood the severity and I know everyone is busy but your comments that it was a major bug in that issue were made over a year ago, and so I was bringing it up again because it's still not fixed and is in fact severe. Let me know if there is anything else I can test to help. |
As further example, with
Futher, when I decrypt the
But then I got curious since this became very visible when I began reporting it above (November time frame)....and it does appear this may be a result of one or two VERY BAD BUG builds of Choco that somehow picked up ONE package arg and re-embedded it on ALL other packages in the same CUP operation - to then be carried forward as THEIR OWN args as long as that choco global feature is enabled. This was the cause of my initial posts above back in November. The proof:
EDIT: Just re-ran the scan ran in chunks first time wanted to verify had entire log of all versions tested So as you can see, once this occurred it embedded the CMAKE package args into the Git package and continues to carry forward - forever. Now the question for which I believe I probably can guess the answer is - is there any way to undo this damage to every affected package's arg files? Since I myself had to decrypt the arg file I'm guessing I'm out of luck but wondering if there is any way I've missed with choco.exe - or - can a manual forced upgrade of each and every package using the corrected args also stick? I have not yet tested but that question is more for others affected with only a few packages as I'd be better off writing a utility to fix the arg files before going that route give the sheer number of packages I have that are affected. :( @ferventcoder Rob at least you can see now first hand what I was referring to and hopefully this makes more sense as to the severity. |
If you do a manual forced upgrade, it would replace with whatever args you last ran with. It would be great if there was a way we could (in a more automated way), verify the upgrade args and let a user say, no, look further back and kind of work until the user gives it a heads up. I think this conversation should really be happening over on #1443 though. |
is this gonna be enabled by default or the idea was dropped out? |
That makes sense. Thank you |
Any updates on this? |
@gabriel-vanca This issue was closed as completed in 2017. If you're looking for an update on this comment, then this has not been abled by default and there are no immediate plans to do so. We will look at it again during the next release cycle. |
Apologies, I know it was closed, but the issues mentioned here are still open. |
Following #358 (and related to #357), we capture the arguments passed during install/upgrade. Now we need to pass them to the upgrades automatically.
cc @SeanKilleen
Notes
This is in preview in 0.10.4 and will be turned to 'on' automatically in a future release. We are going to be continually making it better and won't turn it on by default until it is ready. If you want to turn it on and start using it, once you have 0.10.4 installed, run
choco feature enable -n useRememberedArgumentsForUpgrades
.You can also do this per command with
--use-remembered-arguments
. You can also turn it off per command with--ignore-remembered-arguments
.A couple of important notes:
.arguments
file where these are stored will be completely encrypted from now on. This is a security mechanism in case there is any sensitive data being passed on the command line. This is by design.--ignore-remembered-arguments
to the upgrade command. This will be fixed in a future release.Examples
Remembered Arguments lost during upgrade all examples (number 1 above)
For 1 above, say you are on 0.10.3. You install
notepadplusplus --forceX86
. Then you upgradechoco upgrade all
and notepadplusplus gets upgraded. Then you install 0.10.4 and upgrade againchoco upgrade notepadplusplus
. It will have lost--forcex86
during the upgrade all so it won't be there on the upgrade with remembered arguments.Now say you are on 0.10.4.
choco install notepadplusplus --forcex86
. When you upgrade every version it will keep--forcex86
unless you pass--ignore-remembered-arguments
and do not pass it as part of the upgrade arguments.The text was updated successfully, but these errors were encountered: