I am working on a branch of the package DataStructures.jl
. Until now I have been using git in a rather ad-hoc and tedious manner to get my commits posted to github. I would prefer to use a proper Julia package dev method. However, I don’t know the correct command to get started. Below is what I tried, which gave me an error message. If I used add
instead of develop
as suggested by the error message, then will the package be stuck in the state in which it was downloaded? Please feel free to give me a verbose answer since I haven’t grasped the differences between Pkg.add
and Pkg.develop
nor how they interact with git.
julia> Pkg.develop(PackageSpec(name="DataStructures", url="https://github.com/StephenVavasis/DataStructures.jl", rev="sortedcontainerupdates"))
ERROR: rev argument not supported by `develop`; consider using `add` instead
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\vavasis\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\Types.jl:68
[2] develop(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; shared::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\vavasis\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:189
[3] develop(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\vavasis\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
[4] develop(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\vavasis\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:144
[5] #develop#14
@ C:\Users\vavasis\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:141 [inlined]
[6] develop(pkg::Pkg.Types.PackageSpec)
@ Pkg.API C:\Users\vavasis\AppData\Local\Programs\Julia-1.7.1\share\julia\stdlib\v1.7\Pkg\src\API.jl:141
[7] top-level scope
@ REPL[10]:1