LinuxSuRen / LinuxSuRen/http-downloader

An interruption in the installation process creates many temporary files that need to be cleaned up

Open
#130 0 comments 0 reactions 0 assignees View on GitHub
bug hacktoberfest
Dominant language
Go
Stars
48
Forks
16
PR merge metrics
No merged PRs in 30d

Description

for example:

```hd install kubernetes-sigs/kustomize/kustomize_v4.2.0@kustomize%2Fv4.2.0```
log:

> start to fetch the config
start to download from https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv4.2.0/kustomize_v4.2.0_darwin_amd64.tar.gz
start to download with 4 threads, size: 7987170, unit: 1996792
Downloading part 1: [>-------------------------------------------------------------------] 4%
Downloading part 2: [>-------------------------------------------------------------------] 3%
Downloading part 0: [--------------------------------------------------------------------] 1%
^C

files:

![image](https://user-images.githubusercontent.com/232069/134443471-b65ac934-9da5-4f66-9da7-0f3c3104fa90.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the interrupted `hd install kubernetes-sigs/kustomize/kustomize_v4.2.0@kustomize%2Fv4.2.0` command and inspect how its four-thread download handles interruption. Done means cancelling the installation no longer leaves the many temporary files shown in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.