objectionary / eo

EOLANG, an Experimental Pure Object-Oriented Programming Language Based on 𝜑-calculus
https://www.eolang.org
MIT License
1.02k stars 127 forks source link

`foreign.json` doesn't exprire on `register`, but it should #3503

Open yegor256 opened 5 days ago

yegor256 commented 5 days ago

Here is what is happening:

  1. I run eo:register with a single foo.eo file, that refers to bar object
  2. The foreign.json gets a new record about foo
  3. I run eo:pull and foreign.json gets a record about bar
  4. I modify the foo.eo file, removing the reference to bar
  5. I run eo:register and eo:pull again - the bar will be pulled again

I believe, we should delete foreign.json when doing eo:register.

yegor256 commented 4 days ago

It seems that we should not only delete those records in the foreign.json, but also destroy the .eo files already downloaded, and also .class files unpacked...