tasks/release.py
def update_modules(ctx, agent_version, verify=True):
    """
    Update internal dependencies between the different Agent modules.
    * --verify checks for correctness on the Agent Version (on by default).

    Examples:
    inv -e release.update-modules 7.27.0
    """
    if verify:
        check_version(agent_version)

    for module in DEFAULT_MODULES.values():
        for dependency in module.dependencies:
            dependency_mod = DEFAULT_MODULES[dependency]
            ctx.run(f"go mod edit -require={dependency_mod.dependency_path(agent_version)} {module.go_mod_path()}")

    Update internal dependencies between the different Agent modules.
    * --verify checks for correctness on the Agent Version (on by default).

    Examples:
    inv -e release.update-modules 7.27.0
    
Update internal dependencies between the different Agent modules.
verify checks for correctness on the Agent Version (on by default).
Update internal dependencies between the different Agent modules . verify checks for correctness on the Agent Version ( on by default ) .
def update_modules(ctx, agent_version, verify=True):
    if verify:
        check_version(agent_version)
    for module in DEFAULT_MODULES.values():
        for dependency in module.dependencies:
            dependency_mod = DEFAULT_MODULES[dependency]
            ctx.run(f"go mod edit -require={dependency_mod.dependency_path(agent_version)} {module.go_mod_path()}")
def update_modules ( ctx , agent_version , verify = True ) : if verify : check_version ( agent_version ) for module in DEFAULT_MODULES . values ( ) : for dependency in module . dependencies : dependency_mod = DEFAULT_MODULES [ dependency ] ctx . run ( f"go mod edit -require={dependency_mod.dependency_path(agent_version)} {module.go_mod_path()}" )
Update internal dependencies between the different Agent modules.
Update internal dependencies between the different Agent modules .
"""
    Update internal dependencies between the different Agent modules.
    * --verify checks for correctness on the Agent Version (on by default).

    Examples:
    inv -e release.update-modules 7.27.0
    """
ctx
agent_version
verify
examples
None