Require versus include
Yesterday I did a stupid thing.
I included an .inc file in a recipe when I added a second version of the recipe. BUT, I misspelled the inc file name. The recipe would build without errors, but nothing was down.
This confused me for a while until I finally realized what an idiot I was.
Should I use require to include files in recipes instead? My understanding is include does not produce an error when the file is not found and require does.
Philip
Quoted 1 line · Philip Balister
Should I use require to include files in recipes instead?
Yes
Quoted 2 lines
My understanding is include does not produce an error when the file is not found and require does.
Right
regards,
Koen