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

Use a single module for all binaries #2317

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

swiatekm
Copy link
Contributor

@swiatekm swiatekm commented Nov 7, 2023

Use a single Go module for all binaries. This simplifies our project structure and tooling. Benefits include:

  • It's now possible to work on any of our components without needing to set up Go workspaces, improving the new contributor experience
  • Testing and linting, go mod tidy, and so on, can now be be done in a single command
  • 3x less dependabot PRs
  • Caching in the CI is now simpler and more robust

The only downside is that dependencies cannot be different between the components, but even that's partially a benefit.

@swiatekm swiatekm added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Nov 7, 2023
@swiatekm swiatekm marked this pull request as ready for review January 9, 2024 17:59
@swiatekm swiatekm requested review from a team January 9, 2024 17:59
@swiatekm swiatekm force-pushed the chore/single-module branch 4 times, most recently from 42517a8 to b118d0f Compare January 11, 2024 11:00
@jaronoff97
Copy link
Contributor

this LGTM. were you able to build the docker containers locally and they worked totally fine? I don't think there would be any problems, but just for extra safety.

@swiatekm
Copy link
Contributor Author

this LGTM. were you able to build the docker containers locally and they worked totally fine? I don't think there would be any problems, but just for extra safety.

I have. And e2e tests do this anyway, so we would've seen some breakage there.

@pavolloffay pavolloffay merged commit b50ddc3 into open-telemetry:main Jan 11, 2024
27 checks passed
@swiatekm swiatekm deleted the chore/single-module branch January 11, 2024 16:55
ItielOlenick pushed a commit to ItielOlenick/opentelemetry-operator that referenced this pull request May 1, 2024
* Use a single module for all binaries

* Move Go setup after checkout in CI jobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants