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

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

charlieegan3
Copy link
Member

@charlieegan3 charlieegan3 commented Sep 4, 2024

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.

Copy link
Member

@anderseknert anderseknert left a 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
Copy link
Member

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

Copy link
Member

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 :)

Copy link
Member Author

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>
@anderseknert anderseknert force-pushed the fix-fix-root-detection branch from 350a430 to 7883261 Compare September 4, 2024 12:04
@anderseknert anderseknert merged commit fef46d7 into StyraInc:main Sep 4, 2024
4 checks passed
@charlieegan3 charlieegan3 deleted the fix-fix-root-detection branch September 4, 2024 12:30
srenatus pushed a commit to srenatus/regal that referenced this pull request Oct 1, 2024
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>
charlieegan3 added a commit to charlieegan3/regal that referenced this pull request Jan 6, 2025
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>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants