Skip to content

Dependencies ignore go.mod replace directives #68

Backlog

Description

@rahlk

Describe the bug

Facts looks up locked_version with the version in the require line. It does not apply replace directives. go.sum records the replacement version, so the lookup fails.

To Reproduce

  1. In go.mod: require example.com/x v1.0.0 and replace example.com/x => example.com/x v1.2.0.
  2. go.sum holds only v1.2.0 lines.
  3. Run cango -i . -a 1.

Expected behavior

The dependency gets locked_version v1.2.0, the lockfile prov, and a LOCKS edge in Neo4j. A local-path replace (=> ../x) is not reported as a remote, versioned dependency.

Logs

The dependency has no locked_version, no lockfile prov, and no LOCKS edge.

Additional context

Activity

  1. added
    bug
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions