-
-
Notifications
You must be signed in to change notification settings - Fork 285
Open
Description
@non-Jedi commented on Fri Aug 31 2018
Just upgraded to 1.0 and tried to checkout some of my projects. One has a git submodule in it as a convenience since it's being developed against a spec contained in another git repo, but I am unable to add that one using Pkg:
julia> using Pkg
julia> Pkg.add(PackageSpec(url="https://github.com/non-Jedi/MatrixClientProtocol.jl", rev="master"))
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Updating git-repo `https://github.com/non-Jedi/MatrixClientProtocol.jl`
ERROR: GitError(Code:ERROR, Class:Submodule, cannot get submodules without a working tree)
Stacktrace:
[1] macro expansion at /builddir/julia/usr/share/julia/stdlib/v1.0/LibGit2/src/error.jl:101 [inlined]
[2] #checkout_tree#46(::LibGit2.CheckoutOptions, ::Function, ::LibGit2.GitRepo, ::LibGit2.GitTree) at /builddir/julia/usr/share/julia/stdlib/v1.0/LibGit2/src/repository.jl:358
[3] #add_or_develop at ./none:0 [inlined]
[4] #add_or_develop#12 at /builddir/julia/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:29 [inlined]
[5] #add_or_develop at ./none:0 [inlined]
[6] #add_or_develop#10(::Base.Iterators.Pairs{Symbol,Symbol,Tuple{Symbol},NamedTuple{(:mode,),Tuple{Symbol}}}, ::Function, ::Pkg.Types.PackageSpec) at /builddir/julia/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:27
[7] #add_or_develop at ./none:0 [inlined]
[8] #add#18 at /builddir/julia/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69 [inlined]
[9] add(::Pkg.Types.PackageSpec) at /builddir/julia/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:69
[10] top-level scope at none:0To be clear, I'm aware that I should have been using Pkg.develop for what I was trying to do here, but I still think that this shouldn't be raising this error.
schneiderfelipe, jonas-schulze, xlxs4, mSamiolo and MilesCranmer
Metadata
Metadata
Assignees
Labels
No labels