<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>41534</bug_id>
          
          <creation_ts>2021-12-08 23:54:13 +0300</creation_ts>
          <short_desc>cargo vendor is broken</short_desc>
          <delta_ts>2021-12-20 10:53:28 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>rust-cargo</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Vladimir D. Seleznev">vseleznv</reporter>
          <assigned_to name="Ajrat Makhmutov">rauty</assigned_to>
          <cc>crux</cc>
    
    <cc>legion</cc>
    
    <cc>obirvalger</cc>
    
    <cc>rauty</cc>
    
    <cc>rx1513</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>205890</commentid>
    <comment_count>0</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-12-08 23:54:13 +0300</bug_when>
    <thetext>$ cargo vendor
    Updating crates.io index
error: failed to sync

Caused by:
  failed to load pkg lockfile

Caused by:
  failed to get `anymap` as a dependency of package `websocat v1.9.0 (/usr/src/RPM/BUILD/websocat)`

Caused by:
  failed to fetch `https://github.com/rust-lang/crates.io-index`

Caused by:
  invalid version 0 on git_proxy_options; class=Invalid (3)

Maybe related: https://github.com/libgit2/libgit2sharp/issues/1769</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205891</commentid>
    <comment_count>1</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-12-08 23:56:07 +0300</bug_when>
    <thetext>Maybe cargo should use git(1) binary instead of libgit2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205892</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-12-09 00:06:36 +0300</bug_when>
    <thetext>Please provide a more detailed description of the problem. In the current form, I cannot reproduce it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205893</commentid>
    <comment_count>3</comment_count>
    <who name="Vladimir D. Seleznev">vseleznv</who>
    <bug_when>2021-12-09 00:27:47 +0300</bug_when>
    <thetext>(In reply to Alexey Gladkov from comment #2)
&gt; Please provide a more detailed description of the problem. In the current
&gt; form, I cannot reproduce it.

Step to reproduce:

# make sure that latest Sisyphus rust-cargo is installed:
    $ rpm -q rust-cargo
    rust-cargo-1.57.0-alt1.x86_64

    # clone websocat repo:
    $ git clone https://github.com/vi/websocat
    $ cd websocat

# try to download vendor deps:
    $ cargo vendor
        Updating crates.io index
    error: failed to sync

    Caused by:
      failed to load pkg lockfile

    Caused by:
      failed to get `anymap` as a dependency of package `websocat v1.9.0 (/usr/src/RPM/BUILD/websocat)`

    Caused by:
      failed to fetch `https://github.com/rust-lang/crates.io-index`

    Caused by:
      invalid version 0 on git_proxy_options; class=Invalid (3)

# It failed.

Note: this command works successfully with upstream cargo binary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205894</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2021-12-09 00:34:01 +0300</bug_when>
    <thetext>It also works with rust-cargo-1.56.1-alt1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>206219</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-12-20 10:53:28 +0300</bug_when>
    <thetext>rust-1:1.57.0-alt2 -&gt; sisyphus:

 Thu Dec 09 2021 Alexey Gladkov &lt;legion@altlinux.ru&gt; 1:1.57.0-alt2
 - Don&apos;t use system libgit2 for now (ALT#41534).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>