Skip to content

Conversation

@webern
Copy link
Contributor

@webern webern commented May 14, 2024

Issue number:

Closes #215

Description of changes:

Introduce the BUILDSYS_EPOCH variable because users will need to rebuild after the breaking changes in #210

Testing done:

  • Build Bottlerocket with the BUILDSYS_EPOCH variable set to 1
  • Build it again without changing the BUILDSYS_EPOCH variable, packages were not rebuilt (other than os as usual).
  • Increment it to 2, build again, we should see all packages being rebuilt.

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

Packages and variants will now rebuild if the BUILDSYS_EPOCH variable
changes. This gives us a way to force a rebuild if changes to the build
system require it.
@webern webern changed the title Epoch introcude buildsys_epoch variable to trigger rebuilds May 14, 2024
@webern webern changed the title introcude buildsys_epoch variable to trigger rebuilds introduce buildsys_epoch variable to trigger rebuilds May 14, 2024
@webern webern added the kits Work relating to kits. label May 14, 2024
@webern
Copy link
Contributor Author

webern commented May 16, 2024

Testing done, works as expected.

@webern
Copy link
Contributor Author

webern commented May 16, 2024

Begin emitting the BUILDSYS_EPOCH variable to trigger a rebuild when
the next version of Twoliter is released. This is necessary because
the next release of Twoliter will have breaking changes that require
a rebuild of all packages and variants.
@webern
Copy link
Contributor Author

webern commented May 16, 2024

@webern webern marked this pull request as ready for review May 16, 2024 20:19
@webern webern merged commit 7f86780 into bottlerocket-os:develop May 16, 2024
@webern webern deleted the epoch branch May 16, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kits Work relating to kits.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

trigger rebuilds automatically when twoliter has a breaking change

3 participants