Repository navigation
Treat Maven manifest versions as resolved dependencies - #226
Conversation
andrew
left a comment
There was a problem hiding this comment.
Targeted, well-scoped fix: adding maven alongside golang in isResolvedDependency is the right call — pom.xml deps carry concrete versions like Go module requires, so they should flow through outdated/vulns/funding/freshness/deprecated the same way. Tests cover both the helper (positive, negative, range-version cases) and the end-to-end outdated --ecosystem maven path from #187.
One thought for later (not a blocker): the golang || maven allowlist will keep growing as more pin-by-default ecosystems come up (Gradle, csproj PackageReference, etc.). At some point it may be worth swapping the ecosystem check for a "requirement looks pinned, not ranged" predicate, but that's a bigger refactor and out of scope here.
Summary
fixes #187 by treating Maven manifest dependencies with explicit versions as resolved dependencies, similar to Go modules...
Changes
isResolvedDependencywhen they have a concrete requirement.outdated.Verification
go test ./cmd -run 'Resolved|Maven|OutdatedUsesMaven'go test ./...go tool golangci-lint run ./cmd --tests=false