Skip to content

Add default case to installDeps switch for unrecognized dependency files #7612

Description

@wbreza

Summary

In pkg/tools/language/python_executor.go, the installDeps() method switches on depFile but only handles
equirements.txt and pyproject.toml. An unrecognized value silently succeeds with no logging.

Add a default case that logs the unrecognized file type, making the coupling between knownProjectFiles and this switch explicit for future maintainability.

Suggested Change

default:
    log.Printf("unsupported dependency file %q — skipping install", depFile)

Context

Metadata

Metadata

Assignees

Labels

enhancementNew feature or improvement

Fields

No fields configured for Feature.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions