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 a bug in cli config parsing #1487

Merged
merged 1 commit into from
Jan 18, 2023
Merged

Fix a bug in cli config parsing #1487

merged 1 commit into from
Jan 18, 2023

Conversation

aeisenberg
Copy link
Contributor

When the config specifies queries in external repositories and no other queries and cli config parsing is enabled, the analyze job is not able to find any queries to run and it fails. This PR fixes the problem.

Also add some logging statements when writing a copy of the user config file.

When the config specifies queries in external repositories and no other
queries and cli config parsing is enabled, the analyze job is not able
to find any queries to run and it fails. This PR fixes the problem.

Also add some logging statements when writing a copy of the user config
file.
@aeisenberg aeisenberg requested a review from a team as a code owner January 18, 2023 05:00
@aeisenberg
Copy link
Contributor Author

Closing and re-opening with config parsing enabled in this repository.

@aeisenberg aeisenberg closed this Jan 18, 2023
@aeisenberg aeisenberg reopened this Jan 18, 2023
Comment on lines +1454 to +1457
logger.info(`Writing augmented user configuration file to ${configLocation}`);
logger.startGroup("Augmented user configuration file contents");
logger.info(yaml.dump(augmentedConfig));
logger.endGroup();
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this makes sense as info while we're rolling out the flag, but let's consider making this debug afterwards.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

@aeisenberg aeisenberg merged commit e0fd640 into main Jan 18, 2023
@aeisenberg aeisenberg deleted the aeisenberg/queries-check branch January 18, 2023 15:29
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