Skip to content

Module dependencies are never pinned #13625

Closed

Description

@shykes

Problem

In main (1.0) we rely on dagger.lock to pin module dependencies (as opposed to legacy dagger.json which had inline pins).

The situation:

1. Dagger CLI defaults to --lock=disabled which means: no using of the lockfile whatsoever. So. no dependencies are pinned. This is already implemented as is
2. Even if typing 'dagger --lock=pinned', only dependencies on a git tag will be pinned. Dependencies on modules on a branch (typically main) are tracked as floating, and will not be pinned.

Solution

1. Change default to --lock=pinned ( #13245 ). Already implemented.
2. First-class support for "fetch latest version" primitive, always tracked as pinned even if it falls back to a branch (#13464 )

Activity

  1. added this to the v1.0.0 milestone on Jul 13, 2026
  2. marcosnils commented on Sep 22, 2026

    @marcosnils
    Contributor

    waiting on a bug fix @eunomie is working on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions