skohub-io / skohub-vocabs

A lightweight tool to publish SKOS Vocabularies
https://skohub.io/
Apache License 2.0
32 stars 25 forks source link

unexpected data folder is empty error #225

Closed masao closed 1 year ago

masao commented 1 year ago

Turtle file not found error occurs even when the file(s) are available.

In my case, the following error was reported:

⛔ Data folder is empty, aborting.
  Add some turtle files to data folder to get beautiful rendered vocabs.

https://github.com/masao/skohub-docker-vocabs/actions/runs/3685002003/jobs/6235427547

The turtle files are available: https://github.com/masao/skohub-docker-vocabs

It seems that the getTurtleFiles() function is called recursively for the subfolders. https://github.com/skohub-io/skohub-vocabs/blob/master/gatsby-node.js#L55

so this error occurs whenever there is a subfolder without a turtle file...

sroertgen commented 1 year ago

Hey @masao,

thank you for the issue! You are totally right.

I moved the check out of the function with https://github.com/skohub-io/skohub-vocabs/pull/226/commits/1f00d8b1e0f01448934de65b694edeb3bd1009d2

My test build on https://github.com/skohub-io/skohub-docker-vocabs went through.

Please check and feel free to open the issue again, if it still does not work!

masao commented 1 year ago

Thanks for the fix. It works well!