JuliaComputing / JuliaHub-Feedback

Public repo for filing JuliaHub issues
6 stars 1 forks source link

How to add a package by cloning a GitHub repository in JuliaHub #138

Open killah-t-cell opened 2 years ago

killah-t-cell commented 2 years ago

I tried to directly ] add <repo-github-url> a package in JuliaHub but got a failed to clone from https://github.com/killah-t-cell/NeuralPDE.jl, error: GitError(Code:ERROR, Class:OS, failed to truncate pack file '/mnt/data/.julia/clones/7896690042292667924/objects/pack/pack_git2_0eR4PF': Permission denied) error.

Is there a way to do this that works? Happy to provide more details about the code.

killah-t-cell commented 2 years ago

@aviks any tips?

mdpradeep commented 2 years ago

You should be able to do Pkg.add("NeuralPDE.jl"). However, if you would want to have the master, then the following should work.

Let me know if this works for you.

killah-t-cell commented 2 years ago

It did not work just yet. Some of the dependencies of NeuralPDE started to fail for some reason or the "data files for them were not found". I wonder if this is one of those bugs where deleting the registries and restarting Julia would fix it.

Screenshot 2022-01-03 at 19 33 15
mdpradeep commented 2 years ago

I was able to add NeuralPDE, do using NeuralPDE and it went through fine. But, I had done Pkg.add("NeuralPDE.jl") before doing git clone ..., etc. Could you give this a try ?