Skip to contentSkip to conversation

Require versus include

DISCUSSION Philip Balister 2 participants 2 messages Feb 22, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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