Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodError: no method matching project_deps_resolve! #1

Open
GlenHertz opened this issue Aug 20, 2020 · 0 comments
Open

MethodError: no method matching project_deps_resolve! #1

GlenHertz opened this issue Aug 20, 2020 · 0 comments

Comments

@GlenHertz
Copy link

Hi,

I'm trying out your scripts to copy packages from a computer with internet access to another without (but the first computer can write files onto a drive that the computer without internet access can only read). I get the following error on julia 1.5:

ERROR: LoadError: MethodError: no method matching project_deps_resolve!(::Pkg.Types.EnvCache, ::Array{PackageSpec,1})
Closest candidates are:
  project_deps_resolve!(::Context, ::AbstractArray{PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Types.jl:729
Stacktrace:
 [1] main(::String, ::String) at /home/hertz/dev/julia/dev-1.5/JuliaOffline/export_julia_project_offline.jl:133
 [2] top-level scope at /home/hertz/dev/julia/dev-1.5/JuliaOffline/export_julia_project_offline.jl:184
 [3] include(::Function, ::Module, ::String) at ./Base.jl:380
 [4] include(::Module, ::String) at ./Base.jl:368
 [5] exec_options(::Base.JLOptions) at ./client.jl:296
 [6] _start() at ./client.jl:506

I'm running it like:

git clone https://github.com/hgixp4y0hk56c/JuliaOffline.git
cd JuliaOffline
julia export_julia_project_offline.jl ../LocalPackageDirName /path/to/shared/drive/julia.depot/LocalPackageDirName
# where LocalPackageDirName has a Project.toml and Manifest.toml file

Currently I'm copying the ~.julia dir over but that isn't working well.

Any help would be appreciated.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant