Skip to content

Neo4j push never removes artifacts and dependencies that are gone #70

Done

Description

@rahlk

Describe the bug

:Artifact and :Package rows are shared rows (module ""). The push only upserts them. A lazy push never removes an artifact, a DECLARES_DEPENDENCY edge or a LOCKS edge that is no longer in the project. With -t (FullRun=false), --eager does not remove them either.

To Reproduce

  1. Push a project with --emit neo4j.
  2. Delete config.yaml, or remove a require from go.mod.
  3. Push again without --eager.

Expected behavior

The graph no longer has the deleted artifact or the removed dependency.

Logs

The graph keeps the old :Artifact, the go.mod -[:DECLARES_DEPENDENCY]-> pkg:golang/<removed> edge, and the old LOCKS edge with its old locked_version. The SDK artifact and dependency getters return them.

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