Hello, everyone
I am new to julia. Is it possible, to use julia (v1.7.3) offline and also take the advantages from the package management? I am able to get some stuff from github by an other url (mirror-server/proxy), but i can’t reach either github.com
or pkg.julialang.org
directly.
In this case, i want to get https://github.com/quinnj/MusicAlbums.jl
and resolve the deps in the project.toml.
(Sorry for strange links, but i got an error “new users can only put 2 links in a post.”)
PROXYURL replaces the long URL of the proxy/mirrorserver.
(@v1.7) pkg> dev https://PROXYURL/quinnj/MusicAlbums.jl
Installing known registries into `~/.julia`
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = Could not resolve host: pkg.julialang.org while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:82
┌ Warning: could not download https://pkg.julialang.org/registries
│ exception = Could not resolve host: pkg.julialang.org while requesting https://pkg.julialang.org/registries
└ @ Pkg.Registry /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.7/Pkg/src/Registry/Registry.jl:82
Cloning registry from "https://github.com/JuliaRegistries/General.git"
ERROR: failed to clone from https://github.com/JuliaRegistries/General.git, error: GitError(Code:ERROR, Class:Net, failed to resolve address for github.com: Name or service not known)
This doesnt also work for me:
(@v1.7) pkg> registry add https://PROXYURL/JuliaRegistries/General
Cloning registry from "https://PROXYURL/JuliaRegistries/General"
ERROR: failed to clone from https://PROXYURL/JuliaRegistries/General, error: GitError(Code:ERROR, Class:HTTP, unexpected http status code: 404
)
The connection from the os cli (ubuntu 20.04) looks fine:
coffee@server:~$ curl -XGET https://PROXYURL/JuliaRegistries/General
[ {
"name" : "KristofferC-patch-1",
"commitId" : "774d78ebe8bd699bc96396531064a3253370e03b",
"isBranch" : true
}, {
"name" : "kc/consistent_spacing",
"commitId" : "035140a7c8b5e6b2a19043c73f925204a408f19c",
"isBranch" : true
}, {
"name" : "kc/statistics_compat",
"commitId" : "72ee85d3ece15d1d562938c70d2ab98d3a95d411",
"isBranch" : true
[....]
I’m searching for a comfortable way, not the “transfer via usb-stick” way
So far I’ve only found “copy solutions”.
Do you have any ideas?