[sources] in Project.toml prior to 1.11

Just checking: is it OK to have a

[sources]
MainPackage = {path = ".."}

in the test/Project.toml of a package prior to the Julia versions which actually support it?

My understanding is that those versions will

  1. just quietly ignore it when the file is read (which is innocuous),
  2. may actually delete it if the Project.toml is modified using the pkg> mode UI, (which I hope to notice when reviewing the commit if it ever happens :wink:)

Is this correct?

1 Like

Yes, but [sources] was introduced in Julia v1.11, not v1.12.

4 Likes

I also think there is some chance we backport it to 1.10. Itโ€™s so nice that itโ€™s a shame to not have on the LTS release. (and itโ€™s the kind of nice that is especially nice for people doing the sort of private code base things that make them likely to want to use the LTS)

3 Likes