Skip to content

Under -t, provides_imports covers only the target files #71

Backlog

Description

@rahlk

Describe the bug

provides_imports is computed from app.SymbolTable. Under -t, the symbol table holds only the packages of the target files. The run emits the full artifact and dependency set, but provides_imports is incomplete.

To Reproduce

  1. Run cango -i . -t cmd/main.go.
  2. Look at provides_imports on each dependency.

Expected behavior

provides_imports is the same as on a full run, or the output marks it as partial.

Logs

Only the imports of cmd/main.go's package are attributed. A library that other packages import shows no imports.

Additional context

  • Location: internal/repository/repository.go:181 (PR Feat/artifacts #48).
  • A consumer that merges this output gets the wrong module-to-import attribution.

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