-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
bugSomething isn't workingSomething isn't workingprocessor/resourcedetectionResource detection processorResource detection processorwaiting-for-code-owners
Description
Component(s)
processor/resourcedetection
What happened?
Description
golangci-lint failing with OTEL v0.130.0 (no error with OTEL v0.129.0), citing:
Can't run linter goanalysis_metalinter: inspect: failed to load package resourcedetectionprocessor: could not load export data: no export data for "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
INFO golangci-lint has version 2.2.2 built with go1.24.4 from e9d42511 on 2025-07-11T12:00:50Z
INFO [config_reader] Used config file ../../../.golangci.yaml
INFO [config_reader] Module name <redacted>
INFO maxprocs: Leaving GOMAXPROCS=10: CPU quota undefined
INFO [goenv] Read go env for 46.949458ms: map[string]string{"GOCACHE":"/home/ubuntu/.cache/go-build", "GOROOT":"/usr/local/go"}
INFO [lintersdb] Active 11 linters: [errcheck errname gocritic gofmt gosec govet ineffassign misspell staticcheck unconvert unused]
INFO [loader] Go packages loading at mode 8767 (deps|exports_file|files|imports|name|types_sizes|compiled_files) took 2.464560001s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 68.578459ms
INFO [linters_context/goanalysis] analyzers took 18.30610244s with top 10 stages: buildir: 1.379336047s, gofmt: 877.493292ms, misspell: 712.595084ms, gosec: 696.030626ms, gocritic: 575.063627ms, unconvert: 508.127293ms, isgenerated: 504.788124ms, unused: 358.186292ms, S1036: 272.54104ms, S1038: 244.489666ms
WARN [runner] Can't run linter goanalysis_metalinter: inspect: failed to load package resourcedetectionprocessor: could not load export data: no export data for "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
INFO [runner/exclusion_paths] Skipped 0 issues by pattern "third_party$"
INFO [runner/exclusion_paths] Skipped 0 issues by pattern "builtin$"
INFO [runner/exclusion_paths] Skipped 0 issues by pattern "examples$"
INFO [runner/exclusion_rules] Skipped 0 issues by rules: [Path: "_test\\.go", Linters: "errcheck"]
INFO [runner/exclusion_rules] Skipped 0 issues by rules: [Path: "third_party$", Linters: "gofmt"]
INFO [runner/exclusion_rules] Skipped 0 issues by rules: [Path: "builtin$", Linters: "gofmt"]
INFO [runner/exclusion_rules] Skipped 0 issues by rules: [Path: "examples$", Linters: "gofmt"]
INFO [runner] processing took 439.457µs with stages: exclusion_paths: 146.5µs, exclusion_rules: 120.042µs, max_same_issues: 49.708µs, nolint_filter: 37.75µs, path_absoluter: 19.208µs, path_shortener: 10.375µs, invalid_issue: 8.292µs, source_code: 7.583µs, max_from_linter: 6.708µs, sort_results: 6.167µs, fixer: 5.875µs, generated_file_filter: 4.75µs, diff: 4.416µs, cgo: 2.083µs, severity-rules: 1.959µs, max_per_file_from_linter: 1.833µs, path_relativity: 1.708µs, uniq_by_line: 1.625µs, path_prettifier: 1.458µs, filename_unadjuster: 1.417µs
INFO [runner] linters took 2.551364585s with stages: goanalysis_metalinter: 2.550324834s
ERRO Running error: can't run linter goanalysis_metalinter
inspect: failed to load package resourcedetectionprocessor: could not load export data: no export data for "github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor"
INFO Memory: 53 samples, avg is 182.1MB, max is 965.1MB
INFO Execution took 5.133927127s
Steps to Reproduce
~/go/bin/golangci-lint run --color always --verbose
Expected Result
Actual Result
Collector version
v0.130.0
Environment information
Environment
OS: Ubuntu 24.04
Compiler(if manually compiled): gopls(v0.19.1/go1.24.5)
OpenTelemetry Collector configuration
Log output
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1
or me too
, to help us triage it. Learn more here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingprocessor/resourcedetectionResource detection processorResource detection processorwaiting-for-code-owners