If the demand for other fuels increases, the cost of diesel can be indirectly affected.
Jet fuel and diesel fuel come from similar parts of the barrel. Refineries can largely choose what kind of fuel they produce for a given unit of input. One barrel doesn't always split into the same fractions. There is configuration involved.