Skip to content
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

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

Merged
merged 3 commits into from
Dec 15, 2023
Merged

Conversation

ptodev
Copy link
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 korniltsev and a team as code owners December 14, 2023 11:53
@CLAassistant
Copy link

CLAassistant commented Dec 14, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@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
18 checks passed
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