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

[chore][Makefile] Fix make otel-from-tree #30333

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

crobert-1
Copy link
Member

Description:

From testing I found out that golang's replace directive didn't work properly when using an absolute path with the ../ included. Using a relative path or an absolute path (without ../ in the middle) resolves the issue. The simple and most clear solution is to use a true absolute path, so I've used dirname with the repo's root dir to determine the parent dir.

Link to tracking Issue:
Fixes #30330

Testing:
Commands in bug description are all working.

@dmitryax
Copy link
Member

Thanks @crobert-1!

@dmitryax dmitryax merged commit 2d5b9a8 into open-telemetry:main Jan 10, 2024
86 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 10, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2024
**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
From testing I found out that golang's `replace` directive didn't work
properly when using an absolute path with the `../` included. Using a
relative path or an absolute path (without `../` in the middle) resolves
the issue. The simple and most clear solution is to use a true absolute
path, so I've used `dirname` with the repo's root dir to determine the
parent dir.

**Link to tracking Issue:** <Issue number if applicable>
Fixes open-telemetry#30330

**Testing:** <Describe what testing was performed and which tests were
added.>
Commands in bug description are all working.
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.

make otel-from-tree results in ambiguous import errors
4 participants