Skip to content

Remove go.mod replace for golang.org/x/exp#2848

Merged
korniltsev merged 3 commits intografana:mainfrom
ptodev:remove-exp
Dec 15, 2023
Merged

Remove go.mod replace for golang.org/x/exp#2848
korniltsev merged 3 commits intografana:mainfrom
ptodev:remove-exp

Conversation

@ptodev
Copy link
Copy Markdown
Contributor

@ptodev ptodev commented Dec 14, 2023

Removing a replace directive for golang.org/x/exp form the Pyroscope's go.mod files.

This is necessary because we are upgrading Grafana Agent to a new OpenTelemetry version, and it requires a new version of github.com/grafana/loki/pkg/push which needs the latest golang.org/x/exp. However, the Agent also depends on Pyroscope and it won't build correctly unless the Pyroscope is changed to use the latest golang.org/x/exp.

The reason why golang.org/x/exp has been problematic is because the return type of SortFunc changed from bool (in the old version) to int (in the new version). Apparently some packages like to use golang.org/x/exp because it's more performant.

@ptodev ptodev requested review from a team and korniltsev as code owners December 14, 2023 11:53
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Dec 14, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Contributor

@korniltsev korniltsev left a comment

Choose a reason for hiding this comment

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

lgtm

@korniltsev korniltsev merged commit f2e64d7 into grafana:main Dec 15, 2023
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