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

rebuild=TRUE on overview lessons fails lesson check #637

Open
froggleston opened this issue Feb 27, 2025 · 0 comments
Open

rebuild=TRUE on overview lessons fails lesson check #637

froggleston opened this issue Feb 27, 2025 · 0 comments

Comments

@froggleston
Copy link
Contributor

froggleston commented Feb 27, 2025

https://github.com/carpentries/sandpaper/blob/4aa05d502eeb4de64fbcd430b468e22dd4952718/R/check_lesson.R#L40C5-L40C48

Overview lessons, e.g datacarpentry/ecology-workshop, do not have episodes. If calling build_lesson(rebuild=TRUE) with overview lessons which haven't been built before, they will fail with:

! Path '/home/rstudio/lesson/episodes' does not exist
Error in report_validation(checklist, "There were errors with the lesson structure.") :
  There were errors with the lesson structure.

Solution: add overview check into the validation process.

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

No branches or pull requests

1 participant