Hi, here is my issue.
I have three packages:
- The app called preamp-manager
- A first lib called lib-pap
- A second lib called lib_pap_proto
Each package has is own git repository. I use gitsubmodules to include the libs in the app and use them.
The app depends on the first lib and the second lib. But the the second lib depends on the first lib.
When I try to build the app, I have a package collision.
gmichel@ubuntu:~/rust/102781_jam_preamp_manager/app/files$ cargo test
warning: unused manifest key: package.author
Updating crates.io index
error: package collision in the lockfile: packages lib-pap v0.1.0 (/home/gmichel/rust/102781_jam_preamp_manager/libs/102782_preamp_proto/generate/rust/libs/102789_lib_pap_rust/files) and lib-pap v0.1.0 (/home/gmichel/rust/102781_jam_preamp_manager/libs/102789_lib_pap_rust/files) are different, but only one can be written to lockfile unambiguously
It says that the gitsubmodules lib-pap and the git submodule lib-pap of the gitsubmodule lib_pap_proto are different, but unless I am misstaken they are the same.
gmichel@ubuntu:~/rust/102781_jam_preamp_manager/app/files$ diff -r /home/gmichel/rust/102781_jam_preamp_manager/libs/102782_preamp_proto/generate/rust/libs/102789_lib_pap_rust/files /home/gmichel/rust/102781_jam_preamp_manager/libs/102789_lib_pap_rust/files
return nothing
I also used git submodule status:
gmichel@ubuntu:~/rust/102781_jam_preamp_manager$ git submodule status
a6b93b8735370f33f0bad82d09ad089381e0b7f5 libs/102782_preamp_proto (heads/bugfix/NGJ_DNCI-710-fix-fetch-error-of-lib-pap-proto_0.1.0.bb)
6a90b3b3a4ed66e2d6f75bbd90c119f527d468d0 libs/102789_lib_pap_rust (heads/develop)
gmichel@ubuntu:~/rust/102782_preamp_proto$ git submodule status
6a90b3b3a4ed66e2d6f75bbd90c119f527d468d0 generate/rust/libs/102789_lib_pap_rust (heads/develop)
I hope I'm clear.
Thanks