On Wed, Sep 4, 2019 at 12:21 PM William Michels <w...@caa.columbia.edu>
wrote:

> Hi Fernando, I'm not sure I understand. Is this for module
> development? And you want to purge old versions of a module you're
> developing, before doing a 'git push'?
>

Yes, it's for module development.
What I do is to actually install, not just test, my module before pushing
it to GitHub.
Usually all my test programs have a "use lib 'lib'" to make sure to use the
present version of the module to test itself.
Though if I miss a "use lib 'lib'" maybe the installed module is used, so I
want to uninstall it before the reinstall.


> I'm not sure about an anonymous uninstall in the pwd ("."), but there
> might be a way to set up a separate 'DevDir', and then use the 'nuke'
> command to only delete paths in--and/or--to that directory.
>
> https://github.com/ugexe/zef
>
> nuke [RootDir | TempDir | StoreDir]
> Deletes all paths in the specific configuration directory
>
> nuke [site | home]
> Deletes all paths that are rooted in the prefix of the matching
> CompUnit::Repository name
>
> # uninstall all modules
> $ zef nuke site home
>
> HTH, Bill.
>
>
>
>
>
>
> On Wed, Sep 4, 2019 at 1:05 AM Fernando Santagata
> <nando.santag...@gmail.com> wrote:
> >
> > Hello,
> >
> > apparently there's no analogous of "zef install ." to uninstall a
> module, i.e. an "anonymous" way to do it.
> >
> > The problem that I'm trying to solve is to automatically uninstall and
> reinstall a module before a "git push". In order to do this I'm using the
> git pre-push hook.
> > So far my pre-push script is just:
> >
> > zef install . --force-install
> >
> > but now I'm thinking that it's not enough and I'd like to uninstall the
> current module and then re-install it.
> > To do that I need a way to uninstall an "anonymous" module, something
> along the lines of "zef uninstall .".
> >
> > Any idea?
> >
> > --
> > Fernando Santagata
>


-- 
Fernando Santagata

Reply via email to