1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
source
------
.. describe:: (source ...)
.. versionadded:: 1.7
Specify where the source for the package can be found.
It can be specified as ``(uri <uri>)`` or using shortcuts for some
hosting services:
Valid for all packages defined in the current Dune project. May be overriden
by the per-package field (see :doc:`package`).
.. list-table::
* - Service
- Syntax
* - `Github <https://github.com>`_
- ``(github user/repo)``
* - `Bitbucket <https://bitbucket.org>`_
- ``(bitbucket user/repo)``
* - `Gitlab <https://gitlab.com>`_
- | ``(gitlab user/repo)``
| ``(gitlab organization/project/repo)`` *(New in 3.17)*
* - `Sourcehut <https://sr.ht>`_
- ``(sourcehut user/repo)``
* - `Codeberg <https://codeberg.org>`_
- ``(codeberg user/repo)`` *(New in 3.17)*
Examples:
.. code:: dune
(source
(github ocaml/dune))
.. code:: dune
(source
(uri https://dev.example.com/project.git))
|