erg-lang / erg

A statically typed language compatible with Python
http://erg-lang.org
Apache License 2.0
2.68k stars 55 forks source link

Add update command for local `.erg` #390

Open GreasySlug opened 1 year ago

GreasySlug commented 1 year ago

Once .erg is created in local, the contents are not updated .erg must be removed and re-installed If this can be automated with commands, it is easier to manage

C-BJ commented 1 year ago

I think it will be updated

mtshiba commented 1 year ago

The only way to update erg installed by ergup is to delete the .erg directory and reinstall it.

If you installed erg using cargo, the library will be updated along with the installation of the new version. Also, they are updated every time with debug builds.

mtshiba commented 1 year ago

I think it would be better to add the overwrite process in ergup.

mtshiba commented 1 year ago

There is also a way to add a subcommand to update erg itself, but this is premature at this time because it involves the package installation feature.