Skip to content

Conversation

seun-ja
Copy link

@seun-ja seun-ja commented Jul 30, 2025

Aims to fix #79

checks if host_path is the path of the app manifest's component exclude_files

Signed-off-by: Aminu 'Seun Joshua <[email protected]>

- fmt
Signed-off-by: Aminu 'Seun Joshua <[email protected]>

- cleaner code
Signed-off-by: Aminu 'Seun Joshua <[email protected]>
@seun-ja seun-ja force-pushed the respect-the-exclude-files-option-in-the-spin-toml-manifest branch from 7494c3f to bc2246c Compare July 30, 2025 11:51

// Host path is the absolute path to the file
let host_path = self.manifest.absolute_from(host_path);
// If the file among list of files to be excluded, skip it
Copy link
Collaborator

Choose a reason for hiding this comment

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

host_path is an absolute path but I think the paths in exclude_files are relative to the manifest. Have you run this code to see if it works? I don't think we have tests for the runtime, but it would be really nice if we did.

Copy link
Author

@seun-ja seun-ja Aug 1, 2025

Choose a reason for hiding this comment

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

I couldn't run it because I keep running into the type mismatch error.

Looking at the sample provided for what an exclude_files can be like it looks to be in form of relative path. I would used relative path instead.

Signed-off-by: Aminu 'Seun Joshua <[email protected]>
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.

Respect the exclude_files option in the spin.toml manifest

2 participants