I am attempting to use the [compat] section to fix the version of a package, say package C, in a package, say A, that I am developing. Suppose the most up to date version of C is C@1.4 while my project.toml for project A looks like:
[compat]
C = "1.1"
The issue I face occurs when, in a different project I am working on, say project B, I add the local version of package A:
]add /Users/local/path/to/A/
but then I see something like:
[0230ef0123] + C v1.4
in the log produced while adding package A to project B.
I then go back and look at the project.toml in package A, and it has been overwritten with the [compat] section removed.
How should add package A to project B instead such that package C v1.1 is added and not Cv1.4?
Thanks in advance