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

Make --skip-needs=true the default option #1835

Merged
merged 1 commit into from
May 9, 2021
Merged

Conversation

mumoshu
Copy link
Collaborator

@mumoshu mumoshu commented May 9, 2021

Ref #1830 (comment)
Ref #1692
Follow-up for #1772

@@ -761,7 +761,11 @@ func (c configImpl) HasCommandName(name string) bool {
}

func (c configImpl) SkipNeeds() bool {
return c.c.Bool("skip-needs")
if !c.IncludeNeeds() {
return c.c.Bool("skip-needs")
Copy link
Contributor

Choose a reason for hiding this comment

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

@mumoshu I think it will return false. when --include-needs is not provided.

Copy link
Collaborator Author

@mumoshu mumoshu Sep 12, 2022

Choose a reason for hiding this comment

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

Why? --include-needs is false by default and in that case it falls into L765 and return true, as BoolTFlag defaults to true.

Copy link
Contributor

Choose a reason for hiding this comment

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

oh. I know.

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