Add flag "required" for glob path #6175
Ernest0-Production
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Hey 👋 We're changing the logic in this PR to skip the warnings for globs completely. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Some time ago, I created an Issue about how annoying the warning was that there was nothing for the specified glob pattern.
#5552
In the discussion, it was suggested to add an option when calling tuist commands.
But it seems to me it would be a much more flexible solution to add a new
Bool
variable to theenum FileElement, ResourceFileElement, CopyFileElement, SourceFileGlob
to determine the severity of the presence of content at this glob path:If you specify
required = false
, then Tuist should not return the warning "No files found at: path/to/dir"Such a solution would not break backward compatibility and would allow common
Project
/Target
helpers factory methods to specify the optional compliance with the glob pattern.Beta Was this translation helpful? Give feedback.
All reactions