Skip to content

A symlinked go.mod is never emitted as an artifact #73

Done

Description

@rahlk

Describe the bug

Discovery skips non-regular files, which includes symlinks. Facts reads go.mod with os.ReadFile, which follows symlinks. The dependencies then name an artifact that the output does not contain.

To Reproduce

  1. Make the root go.mod a symlink (common in monorepo or Bazel layouts).
  2. Run cango -i . --emit neo4j.

Expected behavior

Every dependency's declared_in names an emitted artifact, and the DECLARES_DEPENDENCY edges exist in Neo4j.

Logs

Dependencies carry declared_in: can://…/artifact/go.mod, but artifacts{} has no go.mod. In Neo4j, every DECLARES_DEPENDENCY row matches no :Artifact and is dropped without a warning. The :Package nodes have no edges.

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