ExtensionIndex : can the scmurl field point to anywhere?

Hi,

I wish to know if the scmurl field of the *.s4ext file in the ExtensionIndex must point to a github repository? Would an extension be built if it points elsewhere, to a gitlab repository for example?

Thank you.

Yes, gitlab should be fine as long as the scmurl points to something that can be cloned.

https://slicer.readthedocs.io/en/latest/developer_guide/extensions.html#supported-metadata-fields

Hello!

And what about the modules built and available only locally? For instance, if I pack a module locally and distribute it myself, where scmurl should point at?

If you are using the regular build process for extensions you will need to point somewhere. It can be a directory that contains a git repository (just use the file path).