[Bug 275132] lang/rust: Build fails when CARGO_CRATES contains a github.com URL: failed to load source for dependency

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 16 Nov 2023 18:21:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275132

            Bug ID: 275132
           Summary: lang/rust: Build fails when CARGO_CRATES contains a
                    github.com URL: failed to load source for dependency
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: rust@FreeBSD.org
          Reporter: yuri@freebsd.org
             Flags: maintainer-feedback?(rust@FreeBSD.org)
          Assignee: rust@FreeBSD.org

Created attachment 246353
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246353&action=edit
Makefile

I am trying to add the port devel/py-qcs-sdk-python, see the attached Makefile.

However, the build breaks like this:
> ===>   Updating Cargo.lock
> error: failed to load source for dependency `quil-rs`
> 
> Caused by:
>   Unable to update /usr/ports/devel/py-qcs-sdk-python/work-py39/quil-rs-quil-py/v0.6.0
> 
> Caused by:
>   failed to read `/usr/ports/devel/py-qcs-sdk-python/work-py39/quil-rs-quil-py/v0.6.0/Cargo.toml`

The above error is due to this part of CARGO_CRATES:
> quil-rs@git+https://github.com/rigetti/quil-rs?tag=quil-py/v0.6.0\#afac2ce17e2fc63bb3b06db4f51bce1429ebe15f


What might be wrong?


Thanks,
Yuri

-- 
You are receiving this mail because:
You are the assignee for the bug.