I have two packages developed myself. Say they are
MySubPkg, and both are pushed to GitHub.
Both packages have
.travis.yml defined for running unit tests automatically by Travis CI when new code is pushed to GitHub. The default Travis CI script (which is called when the
script: section is not defined in
.travis.yml) runs fine for
MySubPkg, but it generates the following error for
... Testing MyPkg Resolving package versions... ERROR: could not find project file for MySubPkg at /home/travis/.julia/packages/MySubPkg/EgBdX
It was not clear to me what “
project file” means in this error message, but I guessed it would be the
Project.toml file of
Project.toml of a dependent package does not seem cloned in some cases.
For example, if I remove
~/.julia for a fresh start, start REPL in the directory of
MyPkg, and perform
pkg> activate . (with the period) followed by
(MyPkg) pkg> instantiate, then it starts installing the dependent packages as defined in
MySubPkg is one of the dependent packages,
MySubPkg is cloned in the
~/.julia/packages/MySubPkg/(some random string)/ directory. However, this cloned directory does not contain
In contrast, if I explicitly add
MySubPkg in REPL by
pkg> add https://github.com/MY_GITHUB_ID/MySubPkg.jl, then
MySubPkg is correctly cloned in the
~/.julia/packages/MySubPkg/(some random string)/ directory.
Project.toml not cloned in some cases? How can I make this file cloned while the Travis CI script runs? Or, is this not the cause of the above error? In that case, how can I resolve the above error?