Skip to content

While reading non-go file one unreadable file or directory aborts the whole analysis #65

Done

Description

@rahlk

Describe the bug

The artifact walk returns any WalkDir error, analyze turns it into a fatal “repository layer” error. One unreadable file or directory anywhere in the project stops the analysis, and cango writes no analysis.json.

These are non-Go files. The Go analysis does not need them.

To Reproduce

  1. Create a directory in the project that the user cannot read, for example mkdir data && chmod 000 data.
  2. Run cango -i . -a 4

Expected behavior
cango skips the unreadable entry with a warning and write analysis.json.

Logs
repository layer: artifact discovery: permission denied

Additional context

Activity

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

    @rahlk
    ContributorAuthor

    Fixed in PR #55 (d2ae0e4): an entry that cannot be listed, stat'ed, opened or read is skipped with a warning that names it. Only the project root stays fatal.

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