Compat section in Project.toml: Do I need to include the compat of my dependencies?

say one of my dependencies only works with Julia 1.6,
do I need to add also a entry julia = "1.6" to the compat section of my Project.toml?

No. It is possible that your dependency gets one update that makes it compatible with earlier Julia versions, and then your package will be artificially limiting the Julia version used.

1 Like

On the one hand it is not your job but the job of your dependency, as leandromartinez says.

On the other hand, however, you probably have not tested your package on earlier Julia versions (due to the dependency not supporting it). From this perspective it might make sense to require Julia 1.6 yourself too. I think a good rule of thumb is to base your compats on what you have tested yourself and/or run CI for.