github.com/cilium/cilium@v1.16.2/Documentation/contributing/development/hubble.rst (about)

     1  .. only:: not (epub or latex or html)
     2  
     3      WARNING: You are looking at unreleased Cilium documentation.
     4      Please use the official rendered version released here:
     5      https://docs.cilium.io
     6  
     7  
     8  .. _hubble_contributing:
     9  
    10  Hubble
    11  ======
    12  
    13  This section is specific to Hubble contributions.
    14  
    15  Bumping the vendored Cilium dependency
    16  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    17  
    18  Hubble vendors Cilium using Go modules. You can bump the dependency by first
    19  running:
    20  
    21  .. code-block:: shell-session
    22  
    23          go get github.com/cilium/cilium@main
    24  
    25  However, Cilium's ``go.mod`` contains ``replace`` directives, which are ignored
    26  by ``go get`` and ``go mod``. Therefore you must also manually copy any updated
    27  ``replace`` directives from Cilium's ``go.mod`` to Hubble's ``go.mod``.
    28  
    29  Once you have done this you can tidy up, vendor the modules, and verify them:
    30  
    31  .. code-block:: shell-session
    32  
    33          go mod tidy
    34          go mod vendor
    35          go mod verify
    36  
    37  The bumped dependency should be committed as a single commit containing all the
    38  changes to ``go.mod``, ``go.sum``, and the ``vendor`` directory.