-
Notifications
You must be signed in to change notification settings - Fork 98
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 script): rewrite the main build script #2319
base: dev
Are you sure you want to change the base?
Conversation
Get rid of annoying file reading/writing logics Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
Signed-off-by: onur-ozkan <[email protected]>
3575651
to
5f4d0f6
Compare
Signed-off-by: onur-ozkan <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to revise our docs... This is extremely outdated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is re-written from scratch, I suggest you to review this by opening the file directly as the diff view will make it likely impossible to understand the logic.
Previous build script were highly unstable and relied on the
MM_DATETIME
andMM_VERSION
files which was very annoying. These files caused cargo to invalidate the build cache, so even if you rancargo build
multiple times without changing anything, it would still rebuild because the build script triggered cache invalidation.This PR makes the build script straightforward and more stable without causing cache invalidation. The final versioning output remains as is, but the implementation side is robust than ever.
Major effects:
MM_VERSION
andMM_DATETIME
files are no longer needed in the project root.MM_DATETIME
file could become outdated as it wasn't consistently updated.