On Tue, Sep 6, 2016 at 12:50 PM, Shashi Gowda <shashigowd...@gmail.com>
wrote:

> It looks like some changes left behind by a half-done PkgDev.tag are
> causing this problem. These steps should get things back to normal, and
> publish the new tag.
>
> 1. rm METADATA/ArbFloats -rf
>
> 2. git checkout METADATA/ArbFloats # if this directory did exist before
> you tried to tag
>

I meant, cd METADTA; git checkout ArbFloats
(this resets the contents of the directory to the latest committed state)


> 3. I also suggest you then make sure you're on the latest commit on
> JuliaLang/METADATA.jl repository:
>     git fetch origin
>     git checkout -b arb-floats origin/metadata-v2
>     this is required if your previous failed attempt left behind a commit.
>
> 4. Note that if you tried PkgDev.tag previously, you will have a tag in
> your ArbFloats repository. You will need to remove that with git tag
> --delete vX.Y.Z before performing PkgDev.tag(...) to get you the correct
> new tag.
>
> 5. You're good to do PkgDev.tag("ArbFloats", :minor)
>
> 6. Finally push your new tag to your ArbFloats repository -- git push
> origin vX.Y.Z
>
> 7. make a METADATA PR from your fork of METADATA.jl
>
>
> On Tue, Sep 6, 2016 at 12:03 PM, Jeffrey Sarnoff <
> jeffrey.sarn...@gmail.com> wrote:
>
>> I have yet to enter my package into the Julia ecosystem by publishing it
>> or manually forking METADATA etc.
>> As I was about to do that, I managed to destroy my local METADATA for the
>> package. I can, by erasing the entry in METADATA (& cache & lib)
>> use PkgDev to re-register the package, but when  I try to tag it, it gets
>> all upset
>>
>> julia> PkgDev.tag("ArbFloats") # or julia> PkgDev.tag("ArbFloats",:minor)
>>
>> ERROR: METADATA/ArbFloats is dirty – commit or stash changes to tag
>>  in #36 at /home/jas/.julia/v0.5/PkgDev/src/entry.jl:223 [inlined]
>>  in with(::PkgDev.Entry.##36#44{String}, ::Base.LibGit2.GitRepo) at
>> ./libgit2/types.jl:638
>>  in tag(::String, ::Symbol, ::Bool, ::String) at
>> /home/jas/.julia/v0.5/PkgDev/src/entry.jl:222
>>  in 
>> (::Base.Pkg.Dir.##2#3{Array{Any,1},PkgDev.Entry.#tag,Tuple{String,Symbol}})()
>> at ./pkg/dir.jl:31
>>  in 
>> cd(::Base.Pkg.Dir.##2#3{Array{Any,1},PkgDev.Entry.#tag,Tuple{String,Symbol}},
>> ::String) at ./file.jl:59
>>  in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String,
>> ::Vararg{Any,N}) at ./pkg/dir.jl:31
>>  in tag(::String, ::Symbol) at /home/jas/.julia/v0.5/PkgDev/s
>> rc/PkgDev.jl:47
>>
>>
>>
>> What is the remedy?
>>
>>
>>
>

Reply via email to