Cargo proxy වෙනස් කිරීමට පෙර අසාර්ථක වූ source URL එක කියවන්න. Registry metadata, crate archive සහ Git dependency වෙනස් fetching හා authentication paths භාවිත කළ හැක. SSH Git URL එකට HTTPS ට වඩා වෙනස් transport arrangement එකක් ද අවශ්‍ය වේ.

Cargo හි අදාළ HTTP requests සඳහා route එක මෙසේ සකස් කළ හැක:

[http]
proxy = "http://203.0.113.10:8080"

Documentation endpoint එක ඔබේ HTTP proxy එකෙන් ප්‍රතිස්ථාපනය කරන්න. Public proxies භාවිත කිරීමට අවසර ඇති public registry path සඳහා candidates HTTP proxy list හි ඇත. External Git executable එකට එකම configuration එක ලැබුණු බව මෙයින් සනාථ නොවේ.

අසාර්ථක source එක Git නම්, Cargo හට built-in implementation වෙනුවට Git CLI තෝරාගත හැක:

[net]
git-fetch-with-cli = true

CARGO_NET_GIT_FETCH_WITH_CLI=true එක command එකකට එය තෝරයි. External Git හට දැන් තමන්ගේ proxy configuration සහ credentials අවශ්‍යය. එකම launch environment එකක එකම Git URL එක සසඳන්න; වෙනත් terminal එකක ක්‍රියා කරන unrelated repository එක පරීක්ෂණයක් නොවේ.

Missing revision, repository permission denial හෝ SSH host-key error implementation වෙනස් කළ පසුවත් එම ගැටලුවම වේ. මෙම option එක supported client තේරීමටය, සාමාන්‍ය dependency repair එකකට නොවේ.

Diagnosis එක project හෝ command scope තුළ තබන්න: global Git සහ user Cargo settings වෙනත් workspaces වලට බලපෑ හැක. Registry URL package data තෝරයි, intermediary නොවේ. Git path ක්‍රියා කළ පසු සම්පූර්ණ intended Cargo operation එක නැවත ධාවනය කරන්න, archives, redirects සහ build-time downloads වෙනත් routes එක් කළ හැකි බැවින්.

අදාළ ලිපි