Skip to content

Parse crates.io version from API/web URL for oss_version#267

Merged
soimkim merged 1 commit into
mainfrom
link
Apr 21, 2026
Merged

Parse crates.io version from API/web URL for oss_version#267
soimkim merged 1 commit into
mainfrom
link

Conversation

@soimkim
Copy link
Copy Markdown
Contributor

@soimkim soimkim commented Apr 21, 2026

Description

AS-IS :

% fosslight_download -s https://crates.io/crates/transpose/0.2.3 -t temp
[] Download git url :https://crates.io/crates/transpose/0.2.3, version:
[] Git clone error: Cloning into 'temp'...
fatal: repository 'https://crates.io/crates/transpose/0.2.3/' not found

[] git checkout version: 
[] wget: https://crates.io/api/v1/crates/transpose/0.2.3/download
[] 
* FOSSLight Downloader - Result: {'success': True, 'message': '', 'oss_name': 'cargo:transpose', 'oss_version': 'download', 'clarified_version': ''})

TO-BE:

% fosslight_download -s https://crates.io/crates/transpose/0.2.3 -t temp
[] Download git url :https://crates.io/crates/transpose/0.2.3, version:
[] Git clone error: Cloning into 'temp'...
fatal: repository 'https://crates.io/crates/transpose/0.2.3/' not found

[] git checkout version: 
[] wget: https://crates.io/api/v1/crates/transpose/0.2.3/download
[] 
* FOSSLight Downloader - Result: {'success': True, 'message': '', 'oss_name': 'cargo:transpose', 'oss_version': '0.2.3', 'clarified_version': '0.2.3'})

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

Warning

Rate limit exceeded

@soimkim has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 45 minutes and 20 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 45 minutes and 20 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 88f0792c-b276-4de2-b337-978c44a6c216

📥 Commits

Reviewing files that changed from the base of the PR and between 37e2027 and 296296b.

📒 Files selected for processing (2)
  • src/fosslight_util/download.py
  • tests/test_download_version_hint.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch link

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@soimkim soimkim added the bug fix [PR] Fix the bug label Apr 21, 2026
@soimkim soimkim self-assigned this Apr 21, 2026
@soimkim soimkim merged commit ee2a043 into main Apr 21, 2026
8 checks passed
@soimkim soimkim deleted the link branch April 21, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix [PR] Fix the bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant