Skip to content

Conversation

@ottok
Copy link
Contributor

@ottok ottok commented Jun 19, 2025

DRAFT - DO NOT MERGE

Introduce a new check-dependencies target that verifies the presence of required system packages and Go tools on Debian systems. This improves the developer experience by providing clear, actionable feedback if necessary dependencies are missing. Instead of failing with cryptic errors during the build or test phases, the user is informed upfront and given instructions on how to install the missing components.

Additionally, fix goimports execution in fmt target. The $(shell ...) make function is evaluated when the Makefile is first parsed, not when a target is executed. This caused goimports to run every time make was invoked, regardless of the specified target, including for unrelated targets like make clean.

Check List

Tests

  • Manual test (add detailed scripts or steps below)

Side effects

  • Increased code complexity

Release notes:

NONE

@ti-chi-bot ti-chi-bot bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 19, 2025
@ti-chi-bot ti-chi-bot bot requested a review from kaaaaaaang June 19, 2025 17:33
@ti-chi-bot
Copy link
Contributor

ti-chi-bot bot commented Jun 19, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign xhebox for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 19, 2025
Introduce a new `check-dependencies` target that verifies the presence
of required system packages and Go tools on Debian systems. This
improves the developer experience by providing clear, actionable
feedback if necessary dependencies are missing. Instead of failing with
cryptic errors during the build or test phases, the user is informed
upfront and given instructions on how to install the missing components.

Additionally, fix goimports execution in fmt target. The `$(shell ...)`
make function is evaluated when the Makefile is first parsed, not when a
target is executed. This caused `goimports` to run every time `make` was
invoked, regardless of the specified target, including for unrelated
targets like `make clean`.
@ottok ottok force-pushed the feature-make-target-check-dependencies branch from 3af5f7c to 39303ff Compare June 19, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant