Metacello / metacello

Metacello is a package management system for Smalltalk
MIT License
87 stars 43 forks source link

Monticello metadata without 'version' file results in 0-length file being created (on Squeak) #525

Closed tcj closed 4 years ago

tcj commented 4 years ago

Hi — tl;dr: MCFileTreeAbstractReader>>#hasMonticelloMetadata might be better with an #and: than an #or:

When a repo has a 'monticello.meta' directory, but there is no 'version' file in it, e.g. [1], FileTree will currently (incorrectly?) try reading from that non-existent file, which in Squeak 5.3 will leave behind a 0-length file in its place.

This seems to be because:

I can craft a pull request if this seems reasonable.

Tested on Squeak 5.3

[1] https://github.com/SeasideSt/Grease/tree/master/repository/BaselineOfGrease.package/monticello.meta

tcj commented 4 years ago

Whoops, maybe this belongs in a FileTree repo instead...?

tcj commented 4 years ago

Yes, wrong repo, sorry. Closing.