Skip to content

Fix missed v1 import path in pyroscope_test.go after module bump to v2#5077

Merged
simonswine merged 1 commit intomainfrom
fix/v2-module-path-objstore-import
Apr 17, 2026
Merged

Fix missed v1 import path in pyroscope_test.go after module bump to v2#5077
simonswine merged 1 commit intomainfrom
fix/v2-module-path-objstore-import

Conversation

@simonswine
Copy link
Copy Markdown
Contributor

@simonswine simonswine commented Apr 17, 2026

Summary

  • pkg/pyroscope/pyroscope_test.go was still importing github.com/grafana/pyroscope/pkg/objstore/client (old v1 path) after the module was bumped to github.com/grafana/pyroscope/v2 in Bump Go module path to github.com/grafana/pyroscope/v2 #5073
  • This caused golangci-lint / gofmt to fail with no export data for "github.com/grafana/pyroscope/pkg/objstore/client"
  • It also caused go mod tidy to pull in github.com/grafana/pyroscope v1.21.0 as an unintended dependency, breaking the check/go/mod step

Fix

One-line change: update the import path to github.com/grafana/pyroscope/v2/pkg/objstore/client.

Test plan

  • CI passes on main after merge (lint, format, go mod checks)

Note

Low Risk
Low risk: a one-line test-only import path fix to align with the v2 module; no runtime logic changes.

Overview
Fixes pkg/pyroscope/pyroscope_test.go to import objstoreclient from github.com/grafana/pyroscope/v2/... instead of the pre-v2 module path, preventing accidental v1 dependency pulls and related lint/go mod failures.

Reviewed by Cursor Bugbot for commit c49423a. Bugbot is set up for automated code reviews on this repo. Configure here.

pkg/pyroscope/pyroscope_test.go was still importing
github.com/grafana/pyroscope/pkg/objstore/client (v1 path), causing
golangci-lint to fail with "no export data" and go mod tidy to pull in
github.com/grafana/pyroscope v1.21.0 as an unintended dependency.
@simonswine simonswine requested a review from a team as a code owner April 17, 2026 15:48
@simonswine simonswine merged commit 171db75 into main Apr 17, 2026
34 checks passed
@simonswine simonswine deleted the fix/v2-module-path-objstore-import branch April 17, 2026 16:15
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.

3 participants