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

cannot install because of tags #4

Closed
visr opened this issue Jan 20, 2017 · 2 comments
Closed

cannot install because of tags #4

visr opened this issue Jan 20, 2017 · 2 comments

Comments

@visr
Copy link

visr commented Jan 20, 2017

On julia 0.5, when I try to install this package, it fails:

julia> Pkg.add("ColorSchemes")
INFO: Cloning cache of Clustering from https://github.com/JuliaStats/Clustering.jl.git
INFO: Cloning cache of ColorSchemes from https://github.com/cormullion/ColorSchemes.jl.git
ERROR: Cannot clone ColorSchemes from https://github.com/cormullion/ColorSchemes.jl.git. Invalid reference name 'refs/tags/v"1.2.0"'.
 in prefetch(::String, ::String, ::Array{String,1}) at .\pkg\cache.jl:56
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool
}}, ::Dict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String}) at .\pkg\entry.jl:512
 in resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{VersionNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool
}}, ::Dict{String,Base.Pkg.Types.Fixed}) at .\pkg\entry.jl:476
 in edit(::Function, ::String, ::Base.Pkg.Types.VersionSet, ::Vararg{Base.Pkg.Types.VersionSet,N}) at .\pkg\entry.jl:30
 in (::Base.Pkg.Entry.##2#5{String,Base.Pkg.Types.VersionSet})() at .\task.jl:360
 in sync_end() at .\task.jl:311
 in macro expansion at .\task.jl:327 [inlined]
 in add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
 in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:31
 in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl:48
 in #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N}) at .\pkg\dir.jl:31
 in add(::String) at .\pkg\pkg.jl:100

The important part is Invalid reference name 'refs/tags/v"1.2.0"'.
I see 3 tags referring to 1.2.0:

V1.2.0
v"1.2.0"
v1.2.0

The last one is in the expected format. Could you remove the first two tags? GitHub allows you to delete the releases in the web interface, but not the tags. These can be removed with git tag -d tagname and pushed with git push origin :refs/tags/tagname. Do check that you don't accidentally remove the last one because of the terminal treating the " differently.

Thanks for putting together this package!

@cormullion
Copy link
Member

Thanks! You can tell I'm not a computer person... :) With your help I think I fixed it. Here's a new v0.5 install:

$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0 (2016-09-19 18:14 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-apple-darwin13.4.0

julia> Pkg.add("ColorSchemes")
INFO: Initializing package repository /Users/me/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: Cloning cache of Clustering from https://github.com/JuliaStats/Clustering.jl.git
INFO: Cloning cache of ColorSchemes from https://github.com/cormullion/ColorSchemes.jl.git
INFO: Cloning cache of ColorTypes from https://github.com/JuliaGraphics/ColorTypes.jl.git
INFO: Cloning cache of ColorVectorSpace from https://github.com/JuliaGraphics/ColorVectorSpace.jl.git
INFO: Cloning cache of Colors from https://github.com/JuliaGraphics/Colors.jl.git
INFO: Cloning cache of Compat from https://github.com/JuliaLang/Compat.jl.git
INFO: Cloning cache of Distances from https://github.com/JuliaStats/Distances.jl.git
INFO: Cloning cache of FileIO from https://github.com/JuliaIO/FileIO.jl.git
INFO: Cloning cache of FixedPointNumbers from https://github.com/JuliaMath/FixedPointNumbers.jl.git
INFO: Cloning cache of Graphics from https://github.com/JuliaGraphics/Graphics.jl.git
INFO: Cloning cache of Images from https://github.com/timholy/Images.jl.git
INFO: Cloning cache of NearestNeighbors from https://github.com/KristofferC/NearestNeighbors.jl.git
INFO: Cloning cache of QuartzImageIO from https://github.com/JuliaIO/QuartzImageIO.jl.git
INFO: Cloning cache of Reexport from https://github.com/simonster/Reexport.jl.git
INFO: Cloning cache of SIUnits from https://github.com/Keno/SIUnits.jl.git
INFO: Cloning cache of StaticArrays from https://github.com/JuliaArrays/StaticArrays.jl.git
INFO: Cloning cache of StatsBase from https://github.com/JuliaStats/StatsBase.jl.git
INFO: Cloning cache of TexExtensions from https://github.com/Keno/TexExtensions.jl.git
INFO: Cloning cache of Zlib from https://github.com/dcjones/Zlib.jl.git
INFO: Installing Clustering v0.7.0
INFO: Installing ColorSchemes v1.2.1
INFO: Installing ColorTypes v0.2.12
INFO: Installing ColorVectorSpace v0.1.12
INFO: Installing Colors v0.6.9
INFO: Installing Compat v0.13.0
INFO: Installing Distances v0.3.2
INFO: Installing FileIO v0.2.1
INFO: Installing FixedPointNumbers v0.2.1
INFO: Installing Graphics v0.1.3
INFO: Installing Images v0.5.14
INFO: Installing NearestNeighbors v0.1.1
INFO: Installing QuartzImageIO v0.1.4
INFO: Installing Reexport v0.0.3
INFO: Installing SIUnits v0.1.0
INFO: Installing StaticArrays v0.1.3
INFO: Installing StatsBase v0.12.0
INFO: Installing TexExtensions v0.0.3
INFO: Installing Zlib v0.1.12
INFO: Package database updated

julia> Pkg.test("ColorSchemes")
INFO: Computing test dependencies for ColorSchemes...
INFO: No packages to install, update or remove
INFO: Testing ColorSchemes
INFO: running tests in: /private/var/folders/3p/1rlt1rk17lz89d1fsm_hq3bh0000gn/T/tmpZx8vRY
INFO: ColorSchemes tests passed
julia> Pkg.status("ColorSchemes")
 - ColorSchemes                  1.2.1
julia> using ColorSchemes
julia> 

With luck, this should now work...!

(git makes me feel stupid sometimes...)

@visr
Copy link
Author

visr commented Jan 20, 2017

Works like a charm! Thanks!

@visr visr closed this as completed Jan 20, 2017
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