-
Notifications
You must be signed in to change notification settings - Fork 91
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
Respect (AMENT|COLCON|CATKIN)_IGNORE directories #286
Conversation
This reflects the behavior of colcon, which tests whether the path exists, not whether it is a regular file.
Looking at different REPs mentioning Can you explain why you think these ignore marker should also possibly subdirectories and can't just create a file instead? |
My particular use case is admittedly a bit of a hack - because
|
Also, I would argue that a directory is a type of file. There was just no use for the REPs to get pedantic about it. |
REP 128 uses the description "empty marker file" which imo clearly identifies a file and not a directory. So I think before we can consider this patch the REP(s) need to be updated to clarify that both types should be considered. |
|
@rotu: is it your intention to antagonise people? I'm Dutch and quite used to directness (sometimes even probably called rudeness), but there doesn't seem to be a need to be abrasive in your responses to people. Why is it insane to understand the sentence is an empty marker file to mean just that: an empty file? A directory is commonly understood to not be a file, that's why it's called a directory, and why there are different ways to manage them and there are different usages for them. It may be that file systems in their implementation consider them similarly, but the very fact that they have different names seem to imply they are not the same for all intents and purposes. If the REP states that the file should be empty, then yes, that would seem to mean that non-empty files are not considered valid |
I'm sorry, I got riled up. @dirk-thomas, I felt like you were being willfully stubborn by insisting I open yet another PR for this change. I should have given you the benefit of the doubt, and I apologize that I didn't.
As the file is described as "an empty marker file" I interpreted it to mean "the presence of an AMENT_IGNORE file", not its content or properties, is what matters. I do think it's unreasonable to disregard an
A directory is a file. As per
I made that explicit in ros-infrastructure/rep#256. |
I assume you are familiar that the terms The fact that you read this differently than many others is just an indicator that it needs to be explicit / clarified in the REP - as done in ros-infrastructure/rep#256. |
Even the linked documentation concedes that a directory is a file. I suppose "
|
This reflects the behavior of colcon, which tests whether the path exists, not whether it is a regular file.