reimplement sha1sum #12

Merged
squel merged 4 commits from squel/sha1sum into main 2024-12-24 00:02:41 +00:00 AGit
Owner
No description provided.
squel changed title from multithread sha1sum to reimplement sha1sum 2024-12-03 11:34:04 +00:00
Author
Owner

based on part of squel/steam-manifest#11

based on part of squel/steam-manifest#11
@ -0,0 +42,4 @@
}
wg.Wait()
if len(failedSums) != 0 {
fmt.Fprintf(os.Stderr, "\033[33;1;4mWARNING\033[0m (%d) files did not match!\n", len(failedSums))
Author
Owner

should add more to the summary:

  • are all files in the target directory checked? (warning: skipped files: [A, B, C])
should add more to the summary: - are all files in the [target](https://git.squel.xyz/squel/steam-manifest/src/commit/66ccfd4de7b1932e84b27f89c6c9d1fc835b7547/main.go#L80-L87) directory checked? (warning: skipped files: [A, B, C])
Author
Owner
82c2f2cf62d8895a8ccacb5f7f7182de93a2ef1c
squel marked this conversation as resolved
@ -0,0 +33,4 @@
}
if bytes.Equal(hash.Sum(nil), value[:]) {
fmt.Printf("%s: [OK]\n", key)
Author
Owner

might wanna be fancy and show key (filename/filepath) first with like a "processing" indicator (such as ...) and after replace that with [OK] or [FAILED].

this way we can see that progress is being made

however rewriting lines form multithreaded output might be hard, but a nice lil sidequest

might wanna be fancy and show `key` (filename/filepath) first with like a "processing" indicator (such as `...`) and after replace that with `[OK]` or `[FAILED]`. this way we can see that progress is being made however rewriting lines form multithreaded output might be hard, but a nice lil sidequest
squel merged commit 3a519083d4 into main 2024-12-24 00:02:41 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Depends on
#11 separate packages
squel/steam-manifest
Reference
squel/steam-manifest!12
No description provided.