-
Notifications
You must be signed in to change notification settings - Fork 117
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
Add ignore_paths support in rill.yaml #4708
Conversation
runtime/compilers/rillv1/init.go
Outdated
ignoredPaths := "ignored_paths:\n- /.idea\n- /.vscode" // TODO: get a list from product | ||
rillYAML := fmt.Sprintf("compiler: %s\n\ntitle: %q\n\n%s\n\n%s\n\n%s", Version, title, mockUsersInfo, mockUsers, ignoredPaths) |
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.
What do you think about not adding it by default to avoid clutter? And just describing it in the docs. (Assuming our defaults are good enough for most people.)
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 was the ask from product. But if we have hardcoded paths then this might not be necessary. @mindspank Any comments?
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.
Hmm feels like with our hardcoded paths we don't need defaults in rill.yaml
runtime/drivers/repo.go
Outdated
// ignoredPaths is a list of paths that are ignored by the parser. | ||
var ignoredPaths = []string{ | ||
"/tmp", | ||
"/.git", | ||
"/node_modules", | ||
} |
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.
Let's also add .DS_Store
.
Can you think of others that would be nice?
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.
Editor folders is what came to my mind. Not sure if it would go to the hardcoded paths of configured 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.
Having editor folders here makes sense to me – don't see any reason people would ever want to edit .vscode
inside of Rill :)
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.
Cool. I will move .vscode
and .idea
here from the init.
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.
LGTM
* Add ignore_paths support in rill.yaml * Add parsing of rill.yaml upfront * Cleanup IsIgnored from parser * Make the initial parse ignore errors * Update admin driver * PR comments
We want to allow users to ignore certain paths through rill.yaml. A new config
ignore_paths
will be added.ignore_paths
.ignore_paths
in file driver.ignore_paths
in admin driver.