Skip to content

Issues with Symlinks in Case of hermes #1

Description

@Aeres-u99
❯ cd terraform
❯ ls
BUGPROCESS.md      checkpoint.go  experiments.go  LICENSE             README.md          telemetry.go  website
build.Dockerfile   CODEOWNERS     go.mod          main.go             scripts            testing       working_dir.go
BUILDING.md        commands.go    go.sum          main_test.go        signal_unix.go     tools
catalog-info.yaml  Dockerfile     help.go         Makefile            signal_windows.go  version
CHANGELOG.md       docs           internal        provider_source.go  staticcheck.conf   version.go
❯ hermes -input . > codemap.json
panic: read internal/getproviders/testdata/search-local-directory/symlinks/real/example.net: is a directory

goroutine 1 [running]:
main.main()
	/home/kei/Projects/hermes/cmd/hermes/main.go:30 +0x3c8


Seems to be a problem with symlinks, probably needs an exclusion in cmd/main.go or internal/analyzer.go IsDir()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions