The same directory cannot be marked as both vendored and data-only $ dune build Error: Directory dir was marked as data_only and vendored, it can't be marked as both. [1]