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

Fix source groups #271

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

arnaldo2792
Copy link
Contributor

Description of changes:

early-boot-config was missing api and imdsclient from its source-group dependencies, so changes to either apiclient or imdsclient didn't trigger a rebuild of early-boot-config.

pluto 's Cargo.toml included source-groups by mistake, and it doesn't have any effect.

Testing done:

After this change, I confirmed that early-boot-config was re-compiled whenever I changed apiclient or imdsclient (even by just touching the files). Before this change, touching didn't trigger a rebuild.

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.

`source-groups` should only be used within `packages/**/Cargo.toml`, in
any other place it doesn't have any effect

Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
`early-boot-config` depends on `imdsclient` and `apiclient`, and should
be re-build whenever either of them changes

Signed-off-by: Arnaldo Garcia Rincon <[email protected]>
@@ -10,6 +10,8 @@ path = "../packages.rs"

[package.metadata.build-package]
source-groups = [
"api",
"imdsclient",
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's just list early-boot-config here instead of the individual subdirectories.

Appears to be missing constants, generate-readme, imdsclient, ...

The brute force way to generate this list would be:

  • copy the sources tree to another location
  • delete everything from the sources tree that isn't a directory in source-groups
  • trim the workspace Cargo.toml and regenerate Cargo.lock
  • see if the package still builds

static-pods and netdog probably also need to be revisited with an eye to completing the dependency picture.

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.

2 participants