Skip to content

Artifact discovery excludes only the identity subfolder of the -c cache directory #67

Done

Description

@rahlk

Describe the bug

Discovery compares paths against opts.CacheDir. But core.New has already changed CacheDir to <cache>/identity-v2-<hash>. Discovery skips only that one subfolder, not the full -c directory that the spec excludes.

To Reproduce

  1. Run cango -i . -c ./.cldk-cache --app-name a.
  2. Run cango -i . -c ./.cldk-cache --app-name b.
  3. Look at application.artifacts in the second output.

Expected behavior

No file under .cldk-cache/ is an artifact.

Logs

The second run emits .cldk-cache/identity-v2-<other>/analysis_cache.json and similar files as artifacts. Their sha256 changes from run to run.

Additional context

  • Location: internal/repository/repository.go:61 (PR Feat/artifacts #48).
  • Effect: the output is not deterministic.
  • Spec: docs/design/specs/v2-artifacts.md (cache exclusion).

Activity

  1. added
    bug
    on Nov 29, 2026
  2. rahlk commented on Nov 29, 2026

    @rahlk
    ContributorAuthor

    Fixed by #56: discovery excludes the whole -c cache root, not only one app's identity subfolder (1f8bb6d).

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