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

Smarter handling of fetching subprojects’ data #6

Open
strogonoff opened this issue Sep 4, 2018 · 0 comments
Open

Smarter handling of fetching subprojects’ data #6

strogonoff opened this issue Sep 4, 2018 · 0 comments
Assignees

Comments

@strogonoff
Copy link
Contributor

strogonoff commented Sep 4, 2018

Site build may fail in strange ways if project data fetched by Jekyll from other repositories is found in an unexpected state.

It’s a bit of an edge case, as it’s never an issue in clean CI environment or during routine development. However, it adds unwelcome confusion during initial bootstrapping and troubleshooting of other errors (such as #5).

The code in question is around https://github.com/riboseinc/jekyll-theme-open-project-helpers/blob/master/lib/jekyll-theme-open-project-helpers/project_data_reader.rb#L136, where it expects either “a clean slate” or everything already set up properly, and may get confused by a third possibility.

Goal

The idea is a trivial addition to/around git_sparse_checkout which would check for existing data consistency & perform a cleanup and re-initialization if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant