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

Fix headless prompt reading from pipes #3617

Merged
merged 1 commit into from
Aug 4, 2022

Conversation

HebaruSan
Copy link
Member

Problem

The metadata tester is broken. It can inflate just fine, but it hangs at the installation testing step.

Cause

In #3515 we started using a new library for reading input for ckan prompt, because it adds several convenient features like tab completion. Apparently it assumes an interactive input and can't read from a redirected input such as a file.

Changes

Now if the --headless flag is used, we use Console.ReadLine to get input as before #3515.

@HebaruSan HebaruSan added Bug Something is not working as intended Easy This is easy to fix Cmdline Issues affecting the command line Pull request labels Aug 4, 2022
@HebaruSan HebaruSan merged commit 2e029f9 into KSP-CKAN:master Aug 4, 2022
@HebaruSan HebaruSan deleted the fix/prompt-pipes branch August 4, 2022 21:28
HebaruSan added a commit to HebaruSan/CKAN that referenced this pull request Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is not working as intended Cmdline Issues affecting the command line Easy This is easy to fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant