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

make otelcontribcol is now failing due to no Go files in ./cmd/otelcontribcol #35631

Open
developer-guy opened this issue Oct 5, 2024 · 5 comments
Labels
bug Something isn't working needs triage New item requiring triage

Comments

@developer-guy
Copy link

Component(s)

cmd/otelcontribcol

What happened?

I was trying to build otelcontribcol using a make target otelcontribcol but it started failing after v0.111.0 because there are no Go files anymore in .cmd/otelcontribcol, is this some sort of a bug or is there any new way of building the project?

Thanks.

Collector version

x.x.x

Environment information

Environment

OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@developer-guy developer-guy added bug Something isn't working needs triage New item requiring triage labels Oct 5, 2024
@BharatKJain
Copy link

BharatKJain commented Oct 7, 2024

I am facing the same issue, let me know if you find something.

[EDIT - Mon Oct 7 09:42:34 UTC 2024] The following mentioned files are removed from cmd/otelcontribcol:

components.go
go.mod
go.sum

Maybe that's why it breaking.

@BharatKJain
Copy link

Found the solution, before running make otelcontribcol, you need to run make genotelcontribcol

@developer-guy
Copy link
Author

I can confirm that it worked yeah!

@swamisriman
Copy link

I've been banging my head since noon 🤦🏻‍♂️.
Thanks @BharatKJain !

@BharatKJain
Copy link

BharatKJain commented Oct 7, 2024

I think we should update the Makefile i.e. add genotelcontribcol step for both docker and binary targets, @mowies @atoulme @andrzej-stencel What are your thoughts on it? I can help with it, if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage New item requiring triage
Projects
None yet
Development

No branches or pull requests

3 participants