-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: Update root detection #1049
fix: Update root detection #1049
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.
👍
|
||
// 0 exit status is expected as all violations should have been fixed | ||
expectExitCode(t, err, 0, &stdout, &stderr) | ||
|
||
exp := fmt.Sprintf(`8 fixes applied: | ||
In project root: %s | ||
In project root: %[1]s |
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.
This should not be needed if only one
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.
But I guess if the linter isn't complaining, neither should I :)
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.
oops, that was a left over from having more than one root.
Now the .regal dir will be used as the root, unless it does not exist. If this is the case, then the roots will be used as the args to the fix cmd. Signed-off-by: Charlie Egan <charlie@styra.com>
350a430
to
7883261
Compare
Now the .regal dir will be used as the root, unless it does not exist. If this is the case, then the roots will be used as the args to the fix cmd. Signed-off-by: Charlie Egan <charlie@styra.com>
Now the .regal dir will be used as the root, unless it does not exist. If this is the case, then the roots will be used as the args to the fix cmd. Signed-off-by: Charlie Egan <charlie@styra.com>
Now the .regal dir will be used as the root, or any bundles configured under it or manually set in the file, unless it does not exist. If this is the case, then the roots will be used as the args to the fix cmd.