Skip to content

Support replace directives in otel readme mage command#7456

Merged
swiatekm merged 2 commits intomainfrom
chore/otel-readme-revision
Mar 28, 2025
Merged

Support replace directives in otel readme mage command#7456
swiatekm merged 2 commits intomainfrom
chore/otel-readme-revision

Conversation

@swiatekm
Copy link
Contributor

What does this PR do?

Makes the otel:readme mage command support replace directives. It now also supports pseudo-versions that Go uses for commit hashes in go.mod.

The implementation now actually parses the go.mod file using x/mod.

Why is it important?

In order to resolve a dependency conflict between beats and otel 0.120.x, we're going to use our own fork of prometheusreceiver. See #7443 for this change made in the 8.18 branch.

Checklist

  • I have read and understood the pull request guidelines of this project.
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas

@swiatekm swiatekm added Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog chore Tasks that just need to be done, they are neither bug, nor enhancements backport-active-all Automated backport with mergify to all the active branches labels Mar 18, 2025
@swiatekm swiatekm requested a review from a team as a code owner March 18, 2025 19:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@swiatekm swiatekm requested a review from cmacknz March 18, 2025 19:18
@swiatekm swiatekm mentioned this pull request Mar 27, 2025
3 tasks
@swiatekm swiatekm force-pushed the chore/otel-readme-revision branch from f33092c to 68db892 Compare March 27, 2025 12:38
@swiatekm swiatekm requested a review from cmacknz March 27, 2025 12:43
@elastic-sonarqube
Copy link

@elasticmachine
Copy link
Contributor

elasticmachine commented Mar 27, 2025

@swiatekm swiatekm enabled auto-merge (squash) March 28, 2025 11:41
@swiatekm swiatekm merged commit 9071254 into main Mar 28, 2025
12 checks passed
@swiatekm swiatekm deleted the chore/otel-readme-revision branch March 28, 2025 12:43
mergify bot pushed a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
mergify bot pushed a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
#	magefile.go
mergify bot pushed a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	NOTICE.txt
#	go.mod
mergify bot pushed a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	NOTICE.txt
#	go.mod
#	magefile.go
mergify bot pushed a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
swiatekm added a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	NOTICE.txt
#	go.mod
swiatekm added a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	NOTICE.txt
#	go.mod
swiatekm added a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
swiatekm added a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
swiatekm added a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	NOTICE.txt
#	go.mod

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
swiatekm added a commit that referenced this pull request Mar 28, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
#	magefile.go
ycombinator pushed a commit that referenced this pull request Apr 4, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)
swiatekm added a commit that referenced this pull request Apr 7, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
#	magefile.go
ycombinator pushed a commit that referenced this pull request Apr 7, 2025
* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

# Conflicts:
#	go.mod
#	magefile.go

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
ycombinator added a commit that referenced this pull request Apr 15, 2025
…command (#7612)

* Support replace directives in otel readme mage command (#7456)

* Support pseudo-versions in otel readme mage command

* Move otel dependency handling to a separate package

(cherry picked from commit 9071254)

* Undoing irrelevant changes

* Running mage update

---------

Co-authored-by: Mikołaj Świątek <mail@mikolajswiatek.com>
Co-authored-by: Shaunak Kashyap <ycombinator@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches chore Tasks that just need to be done, they are neither bug, nor enhancements skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants