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

Do not install template dirs that are not templates #639

Merged
merged 2 commits into from
Jul 14, 2022

Conversation

itowlson
Copy link
Contributor

@itowlson itowlson commented Jul 14, 2022

Fixes #637.

This doesn't provide a way to clean up invalid directories within the template store; hopefully users can sort that themselves for now.

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson marked this pull request as ready for review July 14, 2022 03:35
@fibonacci1729
Copy link
Contributor

Seems to work great, tested with:

mkdir ~/Library/Application\ Support/spin/templates/not-a-template
spin templates list
... templates listed correctly ...

note: ignored invalid entry not-a-template (Template load error: Failed to read template manifest file ~/Library/Application Support/spin/templates/not-a-template/metadata/spin-template.toml)

Copy link
Contributor

@fibonacci1729 fibonacci1729 left a comment

Choose a reason for hiding this comment

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

LGTM!

@itowlson itowlson merged commit 998dbc7 into fermyon:main Jul 14, 2022
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.

spin templates list is returning an error
2 participants