Skip to content

Commit 7ec5b2e

Browse files
committed
chore: fix tarball url
1 parent e5ef4f6 commit 7ec5b2e

2 files changed

Lines changed: 6 additions & 26 deletions

File tree

README.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# bytes-radar
1+
# Bytes Radar
22

33
[![CI](https://github.com/zmh-program/bytes-radar/workflows/CI/badge.svg)](https://github.com/zmh-program/bytes-radar/actions)
44
[![Crates.io](https://img.shields.io/crates/v/bytes-radar.svg)](https://crates.io/crates/bytes-radar)
@@ -9,7 +9,7 @@ A fast code analysis tool for remote repositories with multi-platform support.
99

1010
## Features
1111

12-
- **Asynchronous Repository Processing**: Implements non-blocking HTTP client with connection pooling and concurrent stream processing for efficient remote repository fetching and decompression
12+
- **Asynchronous Repository Processing**: Non-blocking HTTP client with concurrent stream processing for efficient remote repository fetching and decompression
1313
- **Multi-Platform URL Resolution**: Features intelligent URL parsing engine that normalizes different Git hosting platform APIs (GitHub, GitLab, Bitbucket, Codeberg) into unified archive endpoints with branch/commit resolution
1414
- **Streaming Archive Analysis**: Processes tar.gz archives directly in memory using streaming decompression without temporary file extraction, reducing I/O overhead and memory footprint
1515
- **Language Detection Engine**: Implements rule-based file extension and content analysis system supporting 150+ programming languages with configurable pattern matching and statistical computation
@@ -190,25 +190,6 @@ OPTIONS:
190190
-V, --version Print version
191191
```
192192

193-
## Architecture
194-
195-
bytes-radar is built with a modular architecture:
196-
197-
```
198-
src/
199-
├── cli/ # Command-line interface
200-
│ ├── args.rs # Argument parsing
201-
│ ├── output.rs # Output formatting
202-
│ ├── progress.rs # Progress bar handling
203-
│ └── url_parser.rs # URL processing
204-
├── core/ # Core analysis logic
205-
│ ├── analysis.rs # File analysis
206-
│ ├── net.rs # Network operations
207-
│ ├── registry.rs # Language detection
208-
│ └── error.rs # Error handling
209-
└── lib.rs # Library entry point
210-
```
211-
212193
## Contributing
213194

214195
We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

src/core/net.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,11 @@ impl RemoteAnalyzer {
100100
&& !url.contains("bitbucket.org")
101101
&& !url.contains("codeberg.org")
102102
{
103-
let tarball_url = if url.ends_with(".tar.gz") || url.ends_with(".tgz") {
104-
url.to_string()
103+
if url.ends_with(".tar.gz") || url.ends_with(".tgz") {
104+
return Ok(url.to_string());
105105
} else {
106-
format!("{}.tar.gz", url)
107-
};
108-
return Ok(tarball_url);
106+
return Ok(url.to_string());
107+
}
109108
}
110109
}
111110

0 commit comments

Comments
 (0)