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

Refactor build process #296

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

michaeladler
Copy link
Member

Description

  • Invert semantics of Go build tags (opt-out instead of opt-in)
  • Get rid of Makefiles and use go build instead
  • Remove go.mod files from subdirectories
  • Fix some linter warnings (contrib is now being linted as well)

Issues Addressed

List and link all the issues addressed by this PR.

Change Type

Please select the relevant options:

  • Bug fix (non-breaking change that resolves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have read the CONTRIBUTING document.
  • My changes adhere to the established code style, patterns, and best practices.
  • I have added tests that demonstrate the effectiveness of my changes.
  • I have updated the documentation accordingly (if applicable).
  • I have added an entry in the CHANGELOG to document my changes (if applicable).

@michaeladler michaeladler requested a review from stormc as a code owner February 26, 2025 16:12
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 72.45%. Comparing base (6316484) to head (6341a11).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
contrib/config-deployment/client/worker.go 0.00% 5 Missing ⚠️
contrib/config-deployment/client/download.go 0.00% 2 Missing ⚠️
contrib/remote-access/client/unix.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #296      +/-   ##
==========================================
- Coverage   80.09%   72.45%   -7.65%     
==========================================
  Files          92      100       +8     
  Lines        4305     4759     +454     
==========================================
  Hits         3448     3448              
- Misses        628     1082     +454     
  Partials      229      229              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Michael Adler <[email protected]>
Change build tags from opt-in to opt-out. Previously, features like
persistence storage backends required explicit build tags to be
included. This change simplifies the build process by enabling all
features by default and requiring build tags only to disable features.
For example, the `no_mysql` build tag disables MySQL support.

As a result, we can now simply run `go build` to build the wfx binary.

Signed-off-by: Michael Adler <[email protected]>
Switch to using `go build` directly to embrace the Go way of building.
This change eliminates the need to maintain both the Makefile and the
goreleaser yaml. You can still build everything at once using the
provided justfile with `just build`.

Additionally, remove the go.mod files in subdirectories to avoid manual
updates when the main go.mod is updated. As a result, the linter now
also checks the contrib files, necessitating a few trivial fixes.

Signed-off-by: Michael Adler <[email protected]>
@michaeladler michaeladler force-pushed the feat/improve-build-process branch from 6f70786 to 6341a11 Compare March 3, 2025 07:53
@michaeladler michaeladler merged commit b10ee74 into siemens:main Mar 3, 2025
16 checks passed
@michaeladler michaeladler deleted the feat/improve-build-process branch March 3, 2025 08:26
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.

2 participants