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

Change antctl make target #6686

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

antoninbas
Copy link
Contributor

Running "make antctl" is common when someone wants to build antctl for the current machine. The current target builds 3 versions of the antctl binary: one for Linux, one for Windows and one for Darwin (using the architecture of the current machine). This seems unnecessary and potentially confusing. We change the antctl target to be an alias of antctl-release. Running "make antctl" will now produce a single binary named "antctl", which can be run on the current machine.

For backwards-compatibility, we preserve the ability to run "make antctl-linux", "make antctl-windows", and "make antctl-darwin". These 3 targets combined will produce the 3 antctl binaries described above.

Finally, we update the Github workflow in charge of validating the antctl Go build. We now have one dedicated step for each supported OS / arch combination.

Running "make antctl" is common when someone wants to build antctl for
the current machine. The current target builds 3 versions of the antctl
binary: one for Linux, one for Windows and one for Darwin (using the
architecture of the current machine). This seems unnecessary and
potentially confusing. We change the antctl target to be an alias of
antctl-release. Running "make antctl" will now produce a single binary
named "antctl", which can be run on the current machine.

For backwards-compatibility, we preserve the ability to run "make
antctl-linux", "make antctl-windows", and "make antctl-darwin". These 3
targets combined will produce the 3 antctl binaries described above.

Finally, we update the Github workflow in charge of validating the
antctl Go build. We now have one dedicated step for each supported OS /
arch combination.

Signed-off-by: Antonin Bas <antonin.bas@broadcom.com>
@antoninbas antoninbas added area/component/antctl Issues or PRs releated to the command line interface component area/build-release Issues or PRs related to building and releasing kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Sep 23, 2024
Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antoninbas
Copy link
Contributor Author

/skip-all

@antoninbas antoninbas merged commit 765d1ea into antrea-io:main Sep 24, 2024
56 of 60 checks passed
@antoninbas antoninbas deleted the change-antctl-make-target branch September 24, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-release Issues or PRs related to building and releasing area/component/antctl Issues or PRs releated to the command line interface component kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants