elm-github-install icon indicating copy to clipboard operation
elm-github-install copied to clipboard

Error Pulling from gitlab.

Open emcfarlane opened this issue 8 years ago • 6 comments

Mirrored elm repos from github and redirecting to gitlab with:

dependency-sources": {
    "elm-lang/core": "https://repo.company.com/vendor/github.com_elm-lang_core",`
},

Fails with the following error:

elm-install --trace                                                                                                                                                                                                                              
Resolving packages...                                                                                                                                                                                                    
  ▶ Getting updates for: vendor/github.com_elm-lang_core                                                                                                                                                                                                                           
/Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/semverse-2.0.0/lib/semverse/version.rb:29:in `split': '' did not contain a valid version string: 'x.y.z' or 'x.y'. (Semverse::Invali
dVersionFormat)                                                                                                                                                                                                                                                                    
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/semverse-2.0.0/lib/semverse/version.rb:64:in `initialize'                                                              
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/identifier.rb:45:in `new'                                                            
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/identifier.rb:45:in `version'                                                        
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/git_source.rb:105:in `versions'                                                      
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:45:in `resolve_dependency'                                               
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:75:in `block in resolve_dependencies'                                    
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:70:in `each'                                                             
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:70:in `resolve_dependencies'                                             
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:53:in `block in resolve_dependency'                                      
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:51:in `each'                                                             
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:51:in `resolve_dependency'                                               
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:28:in `block in resolve'                                                 
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:27:in `each'                                                             
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/resolver.rb:27:in `resolve'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install/installer.rb:25:in `install'                                                         
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_reference.rb:43:in `send_to'                                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/call_with.rb:79:in `call_with'                                                          
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/contracts-0.16.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'                                     
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/lib/elm_install.rb:40:in `install'                                                                   
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/elm_install-1.6.1/bin/elm-install:20:in `block (2 levels) in <top (required)>'                                         
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'                                                                 
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'                                                                 
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'                                                                  
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'                                                    
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/runner.rb:68:in `run!'                                                                   
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'                                                                
        from /Users/edwardmcfarlane/.config/yarn/global/node_modules/elm-github-install/scripts/dist-1.6.1/elm-install-1.6.1-osx/lib/vendor/ruby/2.2.0/gems/commander-4.4.3/lib/commander/import.rb:5:in `block in <top (required)>'    

Tags are maintained for the cloned repos. What could be causing this?

emcfarlane avatar Oct 04 '17 17:10 emcfarlane

This error is not for the version tag but for the version in the elm-package.json at a specific tag. Can you post the elm-package.json of your project?

gdotdesign avatar Oct 05 '17 06:10 gdotdesign

elm-package.json:

{
    "dependencies": {
        "NoRedInk/elm-decode-pipeline": "3.0.0 <= v < 4.0.0",
        "elm-community/dict-extra": "2.2.0 <= v < 3.0.0",
        "elm-community/graph": "4.0.0 <= v < 5.0.0",
        "elm-community/html-extra": "2.2.0 <= v < 3.0.0",
        "elm-community/list-extra": "6.1.0 <= v < 7.0.0",
        "elm-lang/animation-frame": "1.0.1 <= v < 2.0.0",
        "elm-lang/core": "5.0.0 <= v < 6.0.0",
        "elm-lang/html": "2.0.0 <= v < 3.0.0",
        "elm-lang/http": "1.0.0 <= v < 2.0.0",
        "elm-lang/mouse": "1.0.1 <= v < 2.0.0",
        "elm-lang/navigation": "2.1.0 <= v < 3.0.0",
        "elm-lang/svg": "2.0.0 <= v < 3.0.0",
        "elm-lang/virtual-dom": "2.0.4 <= v < 3.0.0",
        "evancz/elm-markdown": "3.0.1 <= v < 4.0.0",
        "evancz/url-parser": "2.0.1 <= v < 3.0.0",
        "gampleman/elm-visualization": "1.5.0 <= v < 2.0.0",
        "justinmimbs/elm-date-extra": "2.0.3 <= v < 3.0.0",
        "jweir/elm-iso8601": "3.0.2 <= v < 4.0.0",
        "krisajenkins/elm-exts": "27.4.0 <= v < 28.0.0",
        "krisajenkins/remotedata": "4.3.0 <= v < 5.0.0",
        "mgold/elm-geojson": "2.0.0 <= v < 3.0.0",
        "terezka/elm-plot": "5.1.0 <= v < 6.0.0"
    },
    "dependency-sources": {
        "NoRedInk/elm-decode-pipeline": "[email protected]:vendor/github.com_NoRedInk_elm-decode-pipeline",
        "elm-community/dict-extra": "[email protected]:vendor/github.com_elm-community_dict-extra",
        "elm-community/graph": "[email protected]:vendor/github.com_elm-community_graph",
        "elm-community/html-extra": "[email protected]:vendor/github.com_elm-community_html-extra",
        "elm-community/list-extra": "[email protected]:vendor/github.com_elm-community_list-extra",
        "elm-lang/animation-frame": "[email protected]:vendor/github.com_elm-lang_animation-frame",
        "elm-lang/core": "[email protected]:vendor/github.com_elm-lang_core",
        "elm-lang/html": "[email protected]:vendor/github.com_elm-lang_html",
        "elm-lang/http": "[email protected]:vendor/github.com_elm-lang_http",
        "elm-lang/mouse": "[email protected]:vendor/github.com_elm-lang_mouse",
        "elm-lang/navigation": "[email protected]:vendor/github.com_elm-lang_navigation",
        "elm-lang/svg": "[email protected]:vendor/github.com_elm-lang_svg",
        "elm-lang/virtual-dom": "[email protected]:vendor/github.com_elm-lang_virtual-dom",
        "evancz/elm-markdown": "[email protected]:vendor/github.com_evancz_elm-markdown",
        "evancz/url-parser": "[email protected]:vendor/github.com_evancz_url-parser",
        "gampleman/elm-visualization": "[email protected]:vendor/github.com_gampleman_elm-visualization",
        "justinmimbs/elm-date-extra": "[email protected]:vendor/github.com_justinmimbs_elm-date-extra",
        "jweir/elm-iso8601": "[email protected]:vendor/github.com_jweir_elm-iso8601",
        "krisajenkins/elm-exts": "[email protected]:vendor/github.com_krisajenkins_elm-exts",
        "krisajenkins/remotedata": "[email protected]:vendor/github.com_krisajenkins_remotedata",
        "mgold/elm-geojson": "[email protected]:vendor/github.com_mgold_elm-geojson",
        "terezka/elm-plot": "[email protected]:vendor/github.com_terezka_elm-plot"
    },
    "elm-version": "0.18.0 <= v < 0.19.0",
    "exposed-modules": [],
    "license": "UNLICENCED",
    "repository": "...",
    "source-directories": [
        "..."
    ],
    "..."
}

Removing the dependency-sources all dependencies are pulled down fine.

emcfarlane avatar Oct 05 '17 07:10 emcfarlane

@gdotdesign is something wrong with the elm-package.json?

emcfarlane avatar Oct 06 '17 09:10 emcfarlane

Yes, probably one of the versions of elm-lang/core (or an other package) has an empty string in it's elm-package.json. This can be fixed though I don't know when I'll have the time.

gdotdesign avatar Oct 09 '17 05:10 gdotdesign

Its due to elm.json instead of elm-package.json.

emcfarlane avatar Oct 09 '17 14:10 emcfarlane

Then it's because of 0.19. I'll try to support it after it comes out.

gdotdesign avatar Oct 09 '17 16:10 gdotdesign