#14292·dagger

dagger mod update --source: change the source of the selected module

Author: shykesCreated Sep 22, 2026Updated Oct 1, 2026

Problem

Sometimes you want to keep a module installed, but change the source to get it from. Example: from github.com/dagger/go to dagger.io/go..

The only way to do this from the CLI without uninstalling (which is destructive, cleans up settings etc), is the escape hatch dagger ws config module.FOO.source. The need is common enough to need a more polished command.

Solution

Add a flag to dagger mod update:

bash
dagger mod update NAME|SOURCE --source=SOURCE

--source: update the selected module's source address

Since a source can specify a version, this makes --version a special case of --source (when you want to change the version only, without repeating the current source)