-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Downgrade keytar dependency for broader compatibility #9694
Conversation
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.
I confirmed that the changes:
- work correctly for both the
browser
andelectron
targets - are aligned with the version present in
vscode
I do not have a RHEL/CentOS7 machine to test but I believe you do so I trust it also now fixes issues with older distros.
I'd rather merge: #9707 The reasoning is that the failures you have encountered are to be expected, to some extend. The solution I propose is to configure your environment to build |
@paul-marechal, I'm fairly neutral on whether to merge this or #9707. I see these as the main arguments: For #9707:
For #9694:
The discussion applies to all of our native modules. The latest |
@colin-grant-work @paul-marechal binding the code to old dependency versions seems like a bad practice unless we have a policy on supported versions. Can we structure the code in a way that adopters that need to run on older distros can easily override the version of keytar used (i.e. put the native lib dependency in it's own extension module)? |
@tsmaeder, it's very easy for adopters to just add |
I would be interested to know why we are using this new version of keytar. Since the downgrade works, I guess we're not using any features from the new version. Also: shouldn't keytar handle the problem of running on older versions of libsecret? |
I think the 'why' is just that it's the latest version, so when we added it to our dependencies, that's what we went with. There's been almost no change in actual As to why |
Fine with downgrading, no strong opinion anymore. Had enough pain with building the latest version of keytar on my end. |
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.
The changes look good to me and solve issues that downstream apps may experience 👍
I think we should aim to include it for tomorrow's 1.16.0 release.
The CI failures should be resolved when rebased.
Signed-off-by: Colin Grant <[email protected]>
6cb5154
to
71a8ce4
Compare
Tomorrow's release includes other dependency changes that could cause problems, including version bumps to |
Which PR(s) bumped those? |
Looks like I'm wrong about In our RHEL7 environment, we've pinned it to the previous version, |
@colin-grant-work the |
What it does
Fixes #9640 by downgradiing
keytar
to the version currently used by VSCode.How to test
Follow steps in #9463:
Get Password
command and see a notification with empty (undefined) password.Set Password
command and see a notification about password change.Get Password
command and see a notification with the updated password.Delete Password
command and see a notification about password change.Get Password
command and see a notification with empty (undefined) password.Now do it on RHEL/CentOS7 and see that you don't get any runtime failures.
Review checklist
Reminder for reviewers
Signed-off-by: Colin Grant [email protected]