I’m trying to package my Julia program with PackageCompiler, but I met a problem of dependencies.
I tried the simplest demo of MyApp as Apps · PackageCompiler (julialang.github.io) showed, and it worked normally. However, when I added using Dates
in the module, it throwed an error about dependency Dates
.
module MyApp
using Dates
greet() = print(Dates.now())
function julia_main()::Cint
# do something based on ARGS?
greet()
return 0 # if things finished successfully
end
end # module
And it reported:
⠙ [00m:12s] PackageCompiler: compiling incremental system imageArgumentError: Package MyApp does not have Dates in its dependencies:
- If you have MyApp checked out for development and have
added Dates as a dependency but haven't updated your primary
environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with MyApp
I have run Pkg.resolve()
and nothing changed to Project.toml
and Manifest.toml
.
Is there any solution for this?