Skip to content
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

Freeze if one of packages points to private repository #30

Open
Tunous opened this issue Jun 25, 2023 · 1 comment
Open

Freeze if one of packages points to private repository #30

Tunous opened this issue Jun 25, 2023 · 1 comment

Comments

@Tunous
Copy link

Tunous commented Jun 25, 2023

One of packages in my project is a private GitHub repository. If this package is present in list of dependencies the command freezes with Username for 'https://github.com' printed to console. Entering text doesn't resolve the issue and script stays frozen.

If I remove that package from dependencies the command no longer freezes and correctly lists outdated versions.

@kiliankoe
Copy link
Owner

Hi @Tunous, thanks for the issue!

Unfortunately I don't have a great solution for this right now, but the best workaround is to use passwordless SSH auth (or using the workaround in #17 for password-protected SSH keys), that way the internal call to git ls-remote will just work and not ask for credentials.

Another option could be to configure your git to use the system keychain as a credential helper (using git config --global credential.helper osxkeychain) which would also let git remember your credentials and not get swift-outdated stuck on the password input.

I think the best option for swift-outdated would be to error out in the case of being prompted for a password, but I don't yet know how best to approach that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants