erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

`rebar3 hex cut` is failing to publish #171

Closed saleyn closed 4 years ago

saleyn commented 4 years ago

See also https://github.com/erlang/rebar3/issues/2304

$ grep version ~/.cache/rebar3/plugins/rebar3_hex/hex_metadata.config 
{<<"version">>,<<"6.9.6">>}.

With a freshly built clone of rebar3 I am getting the hex cut error:

$ rebar3 version
rebar 3.14.0-rc2+build.4678.refa913070f on Erlang/OTP 23 Erts 11.0
$ DEBUG=1 rebar3 hex cut
===> Evaluating config script "rebar.config.script"
===> Load global config file /home/serge/.config/rebar3/rebar.config                                                                
===> 23.0 satisfies the requirement for minimum OTP version 18                                                                      
===> Not adding provider pc compile from module pc_prv_compile because it already exists from module pc_prv_compile                 
===> Not adding provider pc clean from module pc_prv_clean because it already exists from module pc_prv_clean                       
===> Expanded command sequence to be run: []                                                                                        
===> Provider: {default,do}                                                                                                         
===> Expanded command sequence to be run: [{default,app_discovery},                                                                 
                                                  {default,install_deps},                                                           
                                                  {default,lock},                                                                   
                                                  {hex,cut}]                                                                        
===> Provider: {default,app_discovery}                                                                                              
===> Not adding provider pc compile from module pc_prv_compile because it already exists from module pc_prv_compile                 
===> Not adding provider pc clean from module pc_prv_clean because it already exists from module pc_prv_clean                       
===> Provider: {default,install_deps}                                                                                               
===> Verifying dependencies...
===> Provider: {default,lock}
===> Provider: {hex,cut}                                                                                                            
===> Using deprecated rebar_utils:vcs_vsn/3. Please upgrade your plugins.
Select semver increment or other (Current 1.16.2):
1) patch
2) minor
3) major
4) other
[1-4] > 1
===> Using deprecated rebar_utils:vcs_vsn/3. Please upgrade your plugins.
Create 'v1.16.3' commit? ("Y")> 
===> sh info:

===>    opts: []                                                                                                                    

===> Port Cmd: git commit -a -m 'v1.16.3'                                                                                           
Port Opts: [exit_status,                                                                                                            
            {line,16384},                                                                                                           
            use_stdio,stderr_to_stdout,hide,eof,binary]                                                                             

Push master to origin master? ("N")> 
===> erlexec.app.src : deprecated field maintainers found
===> Evaluating config script "/home/serge/projects/erl-libs/erlexec/rebar.config.script"
Publishing erlexec 1.16.3 to hexpm
  Description: OS Process Manager
  Dependencies:

  Included files:
    LICENSE
    README.md
    c_src/ei++.cpp
    c_src/ei++.hpp
    c_src/exec.cpp
    c_src/exec.hpp
    c_src/exec_impl.cpp
    include/exec.hrl
    rebar.config
    rebar.config.script
    rebar.lock
    src/edoc.css
    src/erlexec.app.src
    src/exec.erl
    src/exec_app.erl
    src/overview.edoc
  Licenses: BSD
  Links:
    Github: https://github.com/saleyn/erlexec
  Build tools: rebar3
Be aware, you are publishing to the public Hexpm repository.
Before publishing, please read Hex CoC: https://hex.pm/policies/codeofconduct
Proceed? ("Y")> 
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: function_clause
===> Stack trace to the error location:                                                                                             
[{rebar3_hex_config,hex_config_write,                                                                                               
                    [#{api_key => undefined,api_organization => undefined,                                                          
                       api_repository => undefined,                                                                                 
                       api_url => <<"https://hex.pm/api">>,                                                                         
                       http_adapter => r3_hex_http_httpc,                                                                           
                       http_adapter_config => #{profile => rebar},                                                                  
                       http_etag => undefined,http_headers => #{},                                                                  
                       http_user_agent_fragment =>                                                                                  
                           <<"(rebar3/3.14.0-rc2+build.4678.refa913070f) (httpc)">>,                                                
                       name => <<"hexpm">>,repo_key => undefined,                                                                   
                       repo_name => <<"hexpm">>,                                                                                    
                       repo_organization => undefined,                                                                              
                       repo_public_key =>                                                                                           
                           <<"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApqREcFDt5vV21JVe2QNB\nEdvzk6w36aNFhVGWN5toNJRjRJ6m4hIuG4KaXtDWVLjnvct6MYMfqhC79HAGwyF+\nIqR6Q6a5bbFSsImgBJwz1oadoVKD6ZNetAuCIK84cjMrEFRkELtEIPNHblCzUkkM\n3rS9+DPlnfG8hBvGi6tvQIuZmXGCxF/73hU0/MyGhbmEjIKRtG6b0sJYKelRLTPW\nXgK7s5pESgiwf2YC/2MGDXjAJfpfCd0RpLdvd4eRiXtVlE9qO9bND94E7PgQ/xqZ\nJ1i2xWFndWa6nfFnRxZmCStCOZWYYPlaxr+FZceFbpMwzTNs4g3d4tLNUcbKAIH4\n0wIDAQAB\n-----END PUBLIC KEY-----">>,                                    
                       repo_url => <<"https://repo.hex.pm">>,                                                                       
                       repo_verify => true,repo_verify_origin => true}],                                                            
                    [{file,"/home/serge/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_config.erl"},                               
                     {line,161}]},                                                                                                  
 {rebar3_hex_publish,publish_package_and_docs,7,                                                                                    
                     [{file,"/home/serge/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_publish.erl"},                             
                      {line,237}]},                                                                                                 
 {rebar3_hex_cut,do_,4,                                                                                                             
                 [{file,"/home/serge/.cache/rebar3/plugins/rebar3_hex/src/rebar3_hex_cut.erl"},                                     
                  {line,133}]},                                                                                                     
 {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},                                                                                  
 {rebar_core,do,2,                                                                                                                  
             [{file,"/home/serge/projects/erl-libs/rebar3.new/src/rebar_core.erl"},                                                 
              {line,154}]},                                                                                                         
 {rebar_prv_do,do_task,5,                                                                                                           
               [{file,"/home/serge/projects/erl-libs/rebar3.new/src/rebar_prv_do.erl"},                                             
                {line,87}]},                                                                                                        
 {rebar_core,do,2,                                                                                                                  
             [{file,"/home/serge/projects/erl-libs/rebar3.new/src/rebar_core.erl"},                                                 
              {line,154}]},                                                                                                         
 {rebar3,run_aux,2,                                                                                                                 
         [{file,"/home/serge/projects/erl-libs/rebar3.new/src/rebar3.erl"},                                                         
          {line,181}]}]                                                                                                             
===> When submitting a bug report, please include the output of `rebar3 report "your command"`