Skip to content

Fix template rendering for skip files and engines #81

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

Merged
merged 2 commits into from
Oct 12, 2021

Conversation

yorinasub17
Copy link
Contributor

The path and not_path attributes for skip_files and engines was not being rendered through boilerplate templating, when we want it to support that.

As a bonus, this adds more logging on glob failures so it is easier to understand what is going on. Otherwise, you get an unhelpful error message that simply states file does not exist.

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

LGTM

rawMatchedPaths, err := zglob.Glob(globPath)
if err != nil {
// TODO: logger-debug - switch to debug
util.Logger.Printf("ERROR: could not glob %s", globPath)
Copy link
Member

Choose a reason for hiding this comment

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

Switch to debug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We don't have logging levels implemented in boilerplate yet. This is a tag to help us track which ones we want to convert to debug logs when we implement it.
I thought we had an issue already for this, but filed a new one #82

@yorinasub17
Copy link
Contributor Author

Thanks for review! Will merge this as I need this in the feature I'm working on right now in architecture catalog.

@yorinasub17 yorinasub17 merged commit c6bcf4b into master Oct 12, 2021
@yorinasub17 yorinasub17 deleted the yori-better-error branch October 12, 2021 16:42
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