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: versioning with cmake #1294

Merged
merged 7 commits into from
Aug 11, 2023
Merged

Conversation

leogr
Copy link
Member

@leogr leogr commented Aug 10, 2023

What type of PR is this?

/kind design

/kind documentation

/kind feature

Any specific area of the project related to this PR?

/area CI

Does this PR require a change in the driver versions?
No.

What this PR does / why we need it:

This PR improves the build system's ability to automatically construct version numbers string, in particular for development builds. The new implementation ensures that the resulting strings are consistent with the SemVer specification and can be ordered in the proper way. More detail about the revised convention and implementation can be found in the updated README.md by this PR. As a bonus point, this PR also removes ad unnecessary dependency in the spirit of streamlining our 3rd-party dependencies.

Once this PR gets merged and libs bumped in Falco, the new cmake module and the revised convention can also be used by Falco.

/milestone 0.13.0

Does this PR introduce a user-facing change?:

new: cmake module to handle released and development build versioning numbers

@poiana poiana added this to the 0.13.0 milestone Aug 10, 2023
@poiana poiana added kind/design dco-signoff: yes kind/documentation Improvements or additions to documentation kind/feature New feature or request approved labels Aug 10, 2023
@leogr leogr force-pushed the refactor/versioning-with-cmake branch from 48365b1 to ca42019 Compare August 10, 2023 15:12
@leogr leogr changed the title wip: refactor: versioning with cmake refactor: versioning with cmake Aug 10, 2023
Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

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

Great work, thank you!

README.md Show resolved Hide resolved
cmake/modules/versions.cmake Show resolved Hide resolved
cmake/modules/GetVersionFromGit.cmake Show resolved Hide resolved
@leogr leogr force-pushed the refactor/versioning-with-cmake branch from b25bb00 to e4ee582 Compare August 11, 2023 11:00
Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

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

/approve

Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

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

/approve

Love it ❤️

@poiana
Copy link
Contributor

poiana commented Aug 11, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, jasondellaluce, leogr

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [Andreagit97,jasondellaluce,leogr]

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

@poiana poiana merged commit 9210e14 into master Aug 11, 2023
18 checks passed
@poiana poiana deleted the refactor/versioning-with-cmake branch August 11, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants