Ok, publishing METADATA manually worked:

Publishing METADATA manually 

If Pkg.publish() 
<http://julia.readthedocs.org/en/latest/stdlib/pkg/#Base.Pkg.publish> fails 
you can follow these instructions to manually publish your package.

By “forking” the main METADATA repository, you can create a personal copy 
(of METADATA.jl) under your GitHub account. Once that copy exists, you can 
push your local changes to your copy (just like any other GitHub project).

1. go to https://github.com/JuliaLang/METADATA.jl/fork and create your own 
fork.

2. add your fork as a remote repository for the METADATA repository on your 
local computer (in the terminal where USERNAME is your github username):

cd ~/.julia/v0.4/METADATAgit remote add USERNAME 
https://github.com/USERNAME/METADATA.jl.git


   1. 
   
   push your changes to your fork:
   
   git push USERNAME metadata-v2
   
   
4. If all of that works, then go back to the GitHub page for your fork, and 
click the “pull request” link.


But I still would like to understand why Pkg.publish() fails.


Uwe


Am Samstag, 22. August 2015 19:42:25 UTC+2 schrieb Uwe Fechner:
>
> Well, it is not that easy.
>
> I did: 
> Pkg.tag("NaNMath",:minor)
>
> which worked well.
>
> Pkg.pubish() did not work.
>
> First I had to do:
> git config --global github.user ufechner7
>
> which worked fine.
>
> Than I had to do:
> Pkg.add("JSON")
>
> It would be nice if the error message of the missing JSON package would 
> come earlier, but OK.
>
> But Pkg.publish() still fails:
>
> julia> Pkg.publish()
> INFO: Validating METADATA
> INFO: Pushing NaNMath permanent tags: v0.1.0
> Username for 'https://github.com': ufechner7
> Password for 'https://ufechn...@github.com': 
> INFO: Submitting METADATA changes
> INFO: Forking JuliaLang/METADATA.jl to ufechner7
> INFO: Recompiling stale cache file 
> /home/ufechner/.julia/lib/v0.4/Compat.ji for module Compat.
> Enter host password for user 'ufechner7':
> INFO: Pushing changes as branch pull-request/d2ff6d30
> Permission denied (publickey).
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
> ERROR: failed process: Process(`git 
> --work-tree=/home/ufechner/.julia/v0.4/METADATA 
> --git-dir=/home/ufechner/.julia/v0.4/METADATA/.git push -q 
> g...@github.com:ufechner7/METADATA.jl.git 
> d2ff6d308410429da335674b372a763978d65bad:refs/heads/pull-request/d2ff6d30`, 
> ProcessExited(128)) [128]
>  in pipeline_error at process.jl:517
>  in run at process.jl:493
>  in pull_request at pkg/entry.jl:324
>  in publish at pkg/entry.jl:387
>  in anonymous at pkg/dir.jl:31
>  in cd at file.jl:22
>  in cd at pkg/dir.jl:31
>  in publish at pkg.jl:61
>
> Any idea how to fix this?
>
> Uwe
>
>
> Am Samstag, 22. August 2015 19:04:30 UTC+2 schrieb Miles Lubin:
>>
>> Pkg.tag("NaNMath")
>> Pkg.publish()
>>
>> is all you should have to do.
>>
>

Reply via email to