Skip to content

Commit dc4f528

Browse files
committed
how to check sha256
1 parent bfc01af commit dc4f528

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,39 @@ flowchart LR
3434
3535
n1@{ shape: rect}
3636
n9@{ shape: rect}
37-
```
37+
```
38+
39+
# CI/CD
40+
41+
Check the sha1 of gitlib like this
42+
43+
```sh
44+
nix-shell -p nix-prefetch-git
45+
nix-prefetch-git https://github.com/jwiegley/gitlib.git bf256617179d853bdbc12e9283b3f570ebb9d9d7 --fetch-submodules
46+
```
47+
48+
Output is like
49+
50+
```
51+
git revision is bf256617179d853bdbc12e9283b3f570ebb9d9d7
52+
path is /nix/store/63bx4k5nwjqwk7gv0a0k8adq796bjbpr-gitlib-bf25661
53+
git human-readable version is -- none --
54+
Commit date is 2025-09-04 11:17:27 -0700
55+
hash is 13k3aymqwzpcijnjjka820nv6rkgakzbvh13glw98p1c4yhqwcbf
56+
{
57+
"url": "https://github.com/jwiegley/gitlib.git",
58+
"rev": "bf256617179d853bdbc12e9283b3f570ebb9d9d7",
59+
"date": "2025-09-04T11:17:27-07:00",
60+
"path": "/nix/store/63bx4k5nwjqwk7gv0a0k8adq796bjbpr-gitlib-bf25661",
61+
"sha256": "13k3aymqwzpcijnjjka820nv6rkgakzbvh13glw98p1c4yhqwcbf",
62+
"hash": "sha256-bjGOoScsXJQ4fSPAvf5Ub2azLRBITSmtjOx+jqtXY44=",
63+
"fetchLFS": false,
64+
"fetchSubmodules": true,
65+
"deepClone": false,
66+
"fetchTags": false,
67+
"leaveDotGit": false,
68+
"rootDir": ""
69+
}
70+
```
71+
72+
Use the "sha256" for the `--sha256` field in the `cabal.project`.

0 commit comments

Comments
 (0)