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

Force prompt option should override non-interactive option. #3616

Merged
merged 3 commits into from
Dec 17, 2024

Conversation

mitchell-as
Copy link
Contributor

@mitchell-as mitchell-as commented Dec 16, 2024

BugDX-3193 Windows ST install fail if install as Administrator

Also assert installing as admin prompt happens on Windows.

@mitchell-as mitchell-as changed the title Assert installing as admin prompt happens on Windows. Force prompt option should override non-interactive option. Dec 16, 2024
}

if !p.isInteractive {
} else if !p.isInteractive {
Copy link
Contributor Author

@mitchell-as mitchell-as Dec 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug here is that we were checking for force and setting nonInteractiveResponse but if !p.isInteractive is also true (it's usually not), then the nonInteractiveResponse we just set would be overwritten with a different value. Oops.

Same applies to the other changes in this PR.

@mitchell-as mitchell-as marked this pull request as ready for review December 17, 2024 18:21
@mitchell-as mitchell-as merged commit 370782b into version/0-48-0-RC1 Dec 17, 2024
8 checks passed
@mitchell-as mitchell-as deleted the mitchell/dx-3193 branch December 17, 2024 18:38
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

Successfully merging this pull request may close these issues.

2 participants