You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched through the issues already and I don't find anything. Either I am doing something completely wrong or this wasn't used by anyone.
I am trying to exclude certain things from publishing. So e.g. I am trying to exclude the folder "pleaseIgnoreMe/". So I will enter "pleaseIgnoreMe/" into the .gitignore file. When doing a publish --dry-run, I can still see the folder "pleaseIgnoreMe". I then tried to do a normal publish, because I though maybe this is not working for --dry-run and exclude a folder which was not needed and it still is not working. The published artifact has "pleaseIgnoreMe".
After thinking more about this - we cannot use the .gitignore file for this. If a file is already checked in, then .gitignore should not count for that. We should not change the semantics of that. For example if a user has ignored '*.tmp' files in .gitignore, but has checked a single 'test.tmp' file in to the test suite, it would be surprising that pub does not publish that file.
Therefore I started working on a pubignore file that will allow ignoring files for publishing only: #2787.
I have searched through the issues already and I don't find anything. Either I am doing something completely wrong or this wasn't used by anyone.
I am trying to exclude certain things from publishing. So e.g. I am trying to exclude the folder "pleaseIgnoreMe/". So I will enter "pleaseIgnoreMe/" into the .gitignore file. When doing a publish --dry-run, I can still see the folder "pleaseIgnoreMe". I then tried to do a normal publish, because I though maybe this is not working for --dry-run and exclude a folder which was not needed and it still is not working. The published artifact has "pleaseIgnoreMe".
The documentation says the only way is the .gitignore file (https://dart.dev/tools/pub/publishing#what-files-are-published). Is this working for anybody?
The text was updated successfully, but these errors were encountered: