Skip to content

Instantly share code, notes, and snippets.

@j-fu
Created December 2, 2021 18:43
Show Gist options
  • Save j-fu/9deaa9d117e617c00a8e37bb20ad30af to your computer and use it in GitHub Desktop.
Save j-fu/9deaa9d117e617c00a8e37bb20ad30af to your computer and use it in GitHub Desktop.
devfree.out
julia> Pkg.add(url="https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl")
Updating git-repo `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl`
Updating registry at `~/.julia/registries/General`
Updating registry at `~/.julia/registries/PackageNursery`
Updating git-repo `git@github.com:j-fu/PackageNursery`
Resolving package versions...
No Changes to `~/Wias/work/julia/test/pkg-devel/Project.toml`
No Changes to `~/Wias/work/julia/test/pkg-devel/Manifest.toml`
Precompiling project...
1 dependency successfully precompiled in 1 seconds
julia> Pkg.develop(url="https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl")
Cloning git-repo `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl`
Resolving package versions...
Updating `~/Wias/work/julia/test/pkg-devel/Project.toml`
[3a4cac2b] ~ DevProject v0.1.0 `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl#main` ⇒ v0.1.0 `~/Wias/work/julia/dev/DevProject`
Updating `~/Wias/work/julia/test/pkg-devel/Manifest.toml`
[3a4cac2b] ~ DevProject v0.1.0 `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl#main` ⇒ v0.1.0 `~/Wias/work/julia/dev/DevProject`
julia> Pkg.free("DevProject")
ERROR: unable to free unregistered package `DevProject [3a4cac2b]`
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Types.jl:55
[2] update_package_free!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec, entry::Pkg.Types.PackageEntry)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1387
[3] (::Pkg.Operations.var"#101#104"{Pkg.Types.Context})(pkg::Pkg.Types.PackageSpec)
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1398
[4] foreach
@ ./abstractarray.jl:2141 [inlined]
[5] free(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/Operations.jl:1398
[6] free(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; kwargs::Base.Iterators.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:321
[7] free(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:80
[8] free(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:78
[9] #free#55
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:76 [inlined]
[10] free
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:76 [inlined]
[11] #free#54
@ /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75 [inlined]
[12] free(pkg::String)
@ Pkg.API /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/Pkg/src/API.jl:75
[13] top-level scope
@ REPL[2]:1
julia> Pkg.rm("DevProject")
Updating `~/Wias/work/julia/test/pkg-devel/Project.toml`
[3a4cac2b] - DevProject v0.1.0 `~/Wias/work/julia/dev/DevProject`
Updating `~/Wias/work/julia/test/pkg-devel/Manifest.toml`
[3a4cac2b] - DevProject v0.1.0 `~/Wias/work/julia/dev/DevProject`
julia> Pkg.add(url="https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl")
Updating git-repo `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl`
Resolving package versions...
Updating `~/Wias/work/julia/test/pkg-devel/Project.toml`
[3a4cac2b] + DevProject v0.1.0 `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl#main`
Updating `~/Wias/work/julia/test/pkg-devel/Manifest.toml`
[3a4cac2b] + DevProject v0.1.0 `https://lab.wias-berlin.de/j-fu/jf-test/devproject.jl#main`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment