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

build: use static files instead of /dev/null #3288

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

webern
Copy link
Contributor

@webern webern commented Jul 24, 2023

Issue number:

Related to #2669 and Twoliter #14

Description of changes:

An unintended consequence of this path = "/dev/null" in the Cargo.toml files of packages and variants is that a change to the device causes a complete rebuild of all of Bottlerocket. So, for example, restarting a machine would cause Bottlerocket to rebuild all packages.

This was an issue in the new Twoliter build system because each time Twoliter is executed, a container is created with a different /dev/null device, triggering a full rebuild.

Though less cool, this commit points all packages at a single packages.rs file and all variants at a variants.rs file to fix this problem.

Testing done:

cargo make works. It fixes the Twoliter problem.

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.

An unintended consequence of this `path = "/dev/null"` in the Cargo.toml
files of packages and variants is that a change to the device causes a
complete rebuild of all of Bottlerocket. So, for example, restarting a
machine would cause Bottlerocket to rebuild all packages.

This was an issue in the new Twoliter build system because each time
Twoliter is executed, a container is created with a different /dev/null
device, triggering a full rebuild.

Though less cool, this commit points all packages at a single
packages.rs file and all variants at a variants.rs file to fix this
problem.
@webern webern merged commit 332ce73 into bottlerocket-os:develop Jul 25, 2023
38 checks passed
@webern webern deleted the librs branch July 25, 2023 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants