na4zagin3 / satyrographos

Package manager for SATySFi
GNU Lesser General Public License v3.0
45 stars 13 forks source link

Generate compatibility warnings #37

Closed na4zagin3 closed 5 years ago

na4zagin3 commented 5 years ago

Satyrographos 0.0.2 will force users to follow new SATySFi package schema. Thus, we need to warn users processing a file referring third-party packages with the old schema.

Here is an idea. Satyrographos will generate a stub file emitting compatibility warnings where it would have been located before. (See https://github.com/gfngfn/SATySFi/commit/7b9091b6013a33fa1cb0e147166e5a30bfb3a63c)

Stub package generation must be an opt-in for packages which has been available since Satyrographos 0.0.1. Those library will have (available-since (satyrographos 0.0.1)) or (compatibility satyrographos-0.0.1) field in the library definition.

na4zagin3 commented 5 years ago

Hmm, to show error messages with abort-with-message, we need to replace all the definition with abort-with-message. It’s too much for now....