-
Notifications
You must be signed in to change notification settings - Fork 226
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
Introduce .pubignore #2787
Introduce .pubignore #2787
Conversation
We had some discussions, consider the following options: I'm personally attracted to (A) because:
|
Yeah - the main complaint about .pubignore files is that we now have even more ("hidden") files floating around. But for most users pubignore will not be needed. |
Co-authored-by: Jonas Finnemann Jensen <[email protected]>
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 pull this into dart-sdk ASAP, so we can get some testing in dev releases..
Implements .gitignore style files called
.pubignore
.Files ignored by a
.pubignore
will not be published (no matter if they are checked in to git).A
.pubignore
in a folder will override a.gitignore
if both are present in the same folder.pub will now no longer call out to git to have .gitignore files interpreted.
This results in some subtle changes in the package listings:
Changed package.listFiles to always take ignore files into account - no usecases warranted the difference.
Most implementation of
ignore.dart
by jonasfj@fixes: #2222
fixes: #2786
fixes: #2566