Skip to content

fix: ignore modules with (devel) versions #2401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

RonFed
Copy link
Contributor

@RonFed RonFed commented Jun 2, 2025

resolves #2388
see #2388 (comment)

@RonFed RonFed marked this pull request as ready for review June 2, 2025 17:47
@RonFed RonFed requested a review from a team as a code owner June 2, 2025 17:47
@MrAlias MrAlias added this to the v0.23.0 milestone Jun 17, 2025
@@ -133,10 +133,18 @@ func goDevVer(raw string) (*semver.Version, error) {
return nil, errors.New("non-devel version")
}

func findModules(goVer *semver.Version, deps []*debug.Module) (map[string]*semver.Version, error) {
func findModules(
logger *slog.Logger,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding a logger parameter to this just to log a message that can be conveyed as an error does not seem like a good design. Can we just return a defined error type here and have the caller with a logger log it as needed instead?

@MrAlias
Copy link
Contributor

MrAlias commented Jun 20, 2025

Alternate solution: #2437

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

failed to create instrumentation
3 participants