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

Error Pulling from gitlab. #48

Open
emcfarlane opened this issue Oct 4, 2017 · 6 comments
Open

Error Pulling from gitlab. #48

emcfarlane opened this issue Oct 4, 2017 · 6 comments
Assignees
Labels

Comments

@emcfarlane
Copy link

emcfarlane commented Oct 4, 2017

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?

@gdotdesign
Copy link
Owner

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?

@emcfarlane
Copy link
Author

emcfarlane commented Oct 5, 2017

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": "git@repo.company.com:vendor/github.com_NoRedInk_elm-decode-pipeline",
        "elm-community/dict-extra": "git@repo.company.com:vendor/github.com_elm-community_dict-extra",
        "elm-community/graph": "git@repo.company.com:vendor/github.com_elm-community_graph",
        "elm-community/html-extra": "git@repo.company.com:vendor/github.com_elm-community_html-extra",
        "elm-community/list-extra": "git@repo.company.com:vendor/github.com_elm-community_list-extra",
        "elm-lang/animation-frame": "git@repo.company.com:vendor/github.com_elm-lang_animation-frame",
        "elm-lang/core": "git@repo.company.com:vendor/github.com_elm-lang_core",
        "elm-lang/html": "git@repo.company.com:vendor/github.com_elm-lang_html",
        "elm-lang/http": "git@repo.company.com:vendor/github.com_elm-lang_http",
        "elm-lang/mouse": "git@repo.company.com:vendor/github.com_elm-lang_mouse",
        "elm-lang/navigation": "git@repo.company.com:vendor/github.com_elm-lang_navigation",
        "elm-lang/svg": "git@repo.company.com:vendor/github.com_elm-lang_svg",
        "elm-lang/virtual-dom": "git@repo.company.com:vendor/github.com_elm-lang_virtual-dom",
        "evancz/elm-markdown": "git@repo.company.com:vendor/github.com_evancz_elm-markdown",
        "evancz/url-parser": "git@repo.company.com:vendor/github.com_evancz_url-parser",
        "gampleman/elm-visualization": "git@repo.company.com:vendor/github.com_gampleman_elm-visualization",
        "justinmimbs/elm-date-extra": "git@repo.company.com:vendor/github.com_justinmimbs_elm-date-extra",
        "jweir/elm-iso8601": "git@repo.company.com:vendor/github.com_jweir_elm-iso8601",
        "krisajenkins/elm-exts": "git@repo.company.com:vendor/github.com_krisajenkins_elm-exts",
        "krisajenkins/remotedata": "git@repo.company.com:vendor/github.com_krisajenkins_remotedata",
        "mgold/elm-geojson": "git@repo.company.com:vendor/github.com_mgold_elm-geojson",
        "terezka/elm-plot": "git@repo.company.com: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
Copy link
Author

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

@gdotdesign
Copy link
Owner

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 gdotdesign added the bug label Oct 9, 2017
@gdotdesign gdotdesign self-assigned this Oct 9, 2017
@emcfarlane
Copy link
Author

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

@gdotdesign
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants