by heavenlyblue · 5y ago · 0 comments
Feels to me like they are joking.
When you have to type out the name in every single file you have a chance of making the mistake every single time you're typing it; while a centralised approach allows one to concentrate on the added import.
One of the vectors of attack using this library is to create a Merge Request that slightly changes the name of the import in one of the N files you are changing. Good luck spotting that as a reviewer.
If the author identified malicious repos on user accounts that were created solely to make those malicious repos... it seems like something the author should have reported to GitHub. I wonder if GitHub would actually do anything, though.
Any non-trivial app would use a preprocessor to manage the import lines. This problem was solved 40 years ago.
The issue was resolved by the comment on the same level, however your comment added 0 to the discussion.