Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pkg.register on clean install fails with ENOENT #61

Closed
rprechelt opened this issue Aug 9, 2016 · 5 comments
Closed

Pkg.register on clean install fails with ENOENT #61

rprechelt opened this issue Aug 9, 2016 · 5 comments

Comments

@rprechelt
Copy link

I download a nightly binary of v0.6.0-dev for the first time (no previous 0.6 julia has been installed on this machine)

I run

Pkg.update()

This successfully creates a v0.6 directory in ~/.julia and initializes it. I then clone an unregistered package

Pkg.clone("http://github.com/rprechelt/Vectorize.jl")

which successfully clones the package. I then try to register it

Pkg.add("PkgDev")
using PkgDev
PkgDev.register("Vectorize")

this last step fails with

INFO: Registering Vectorize at http://github.com/rprechelt/Vectorize.jl
INFO: Tagging Vectorize v0.0.1
ERROR: chdir METADATA: no such file or directory (ENOENT)
 in uv_error at ./libuv.jl:68 [inlined]
 in cd(::String) at ./file.jl:39
 in cd(::PkgDev.Entry.##15#18{Base.LibGit2.GitRepo,String,VersionNumber,String,Bool,Array{Base.Pkg.Reqs.Line,1}}, ::String) at ./file.jl:58
 in write_tag_metadata(::Base.LibGit2.GitRepo, ::String, ::VersionNumber, ::String, ::Bool) at /Users/rprechelt/.julia/v0.6/PkgDev/src/entry.jl:117
 in write_tag_metadata(::Base.LibGit2.GitRepo, ::String, ::VersionNumber, ::String) at /Users/rprechelt/.julia/v0.6/PkgDev/src/entry.jl:112
 in (::PkgDev.Entry.##20#28{String,String,String})(::Base.LibGit2.GitRepo) at /Users/rprechelt/.julia/v0.6/PkgDev/src/entry.jl:167
 in transact(::PkgDev.Entry.##20#28{String,String,String}, ::Base.LibGit2.GitRepo) at ./libgit2/libgit2.jl:513
 in register(::String, ::String) at /Users/rprechelt/.julia/v0.6/PkgDev/src/entry.jl:145
 in register(::String) at /Users/rprechelt/.julia/v0.6/PkgDev/src/entry.jl:194
 in register(::String) at /Users/rprechelt/.julia/v0.6/PkgDev/src/PkgDev.jl:36
@tkelman
Copy link
Contributor

tkelman commented Aug 9, 2016

did update call init? do you have a METADATA clone there?

@rprechelt
Copy link
Author

To make sure nothing was awry, I rm -rf ~/.julia/v0.6. I then ran:

Pkg.init()
Pkg.update()
Pkg.add("PkgDev")
using PkgDev

which all completed successfully. However, any attempt to register a package (I created a blank new package and attempted to register it), results in the error above.

@rprechelt
Copy link
Author

I just booted up a vagrant VM running a fresh Ubuntu installation and installed the nightly binary. Attempting to register a package generates the same error. Are you able to replicate this?

@tkelman
Copy link
Contributor

tkelman commented Aug 11, 2016

Oh I think this was fixed by #58 but we haven't tagged that yet. Try with Pkg.checkout("PkgDev") to be sure?

@tkelman
Copy link
Contributor

tkelman commented Aug 11, 2016

Leave a comment if still an issue on master and we'll reopen.

@tkelman tkelman closed this as completed Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants