This topic contains 2 replies, has 2 voices, and was last updated by  fzabala 8 years, 7 months ago.

How to rename a shared module

  • Hi,

    What’s the best way to remove a module permanently? Even better, how to rename it? I just realized that require("moduleName") is case sensitive but when I try to recreate the module (which I accidentally named modulename to moduleName, it says that the module already exists.


    Hmm. I don’t think you can get around that without digging into the fossil repository.

    Please note that dinking with the repository can give you unintended headaches, so BACK EVERYTHING UP before you try this.

    In the translator, remove the ‘require’ statement for the offending module and delete the module from the project management window. Then save your milestone.

    On Unix/Linux:

    $ cd /path/to/iNTERFACEWARE-Iguana
    $ fossil open vcs_repo.sqlite
    (answer "N" to any "overwrite?" questions)
    $ fossil rename shared/oldmodule.lua shared/newmodule.lua
    $ mv edit/admin/shared/oldmodule.lua edit/admin/shared/newmodule.lua
    $ fossil ci
    (enter a comment, then a '.' on its own line)
    $ fossil close

    On Windows:

    C> cd \Program Files\iNTERFACEWARE\Iguana
    C> fossil open vcs_repo.sqlite
       (answer "N" to any "overwrite?" questions)
    C> fossil rename shared/oldmodule.lua shared/newmodule.lua
    C> ren edit\admin\shared\oldmodule.lua newmodule.lua
    C> fossil ci
       (enter a comment, then '.' on its own line)
    C> fossil close

    Jeff Drumm ◊ VP and COO ◊ HICG, LLC. ◊

    Wow, at least there is a way to do it! Since I was doing it in my test environment, I figured to redo it and just keep in mind that I have to be mindful of my naming conventions.

    Thanks for the help Jeff!

You must be logged in to reply to this topic.