dugite 2.5.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/errors.d.ts +59 -58
- package/build/lib/errors.js +60 -58
- package/build/lib/errors.js.map +1 -1
- package/package.json +1 -1
- package/script/config.js +1 -5
- package/script/download-git.js +1 -1
- package/script/embedded-git.json +25 -25
package/build/lib/errors.d.ts
CHANGED
@@ -1,63 +1,64 @@
|
|
1
1
|
/** The git errors which can be parsed from failed git commands. */
|
2
2
|
export declare enum GitError {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
3
|
+
BadConfigValue = 0,
|
4
|
+
SSHKeyAuditUnverified = 1,
|
5
|
+
SSHAuthenticationFailed = 2,
|
6
|
+
SSHPermissionDenied = 3,
|
7
|
+
HTTPSAuthenticationFailed = 4,
|
8
|
+
RemoteDisconnection = 5,
|
9
|
+
HostDown = 6,
|
10
|
+
RebaseConflicts = 7,
|
11
|
+
MergeConflicts = 8,
|
12
|
+
HTTPSRepositoryNotFound = 9,
|
13
|
+
SSHRepositoryNotFound = 10,
|
14
|
+
PushNotFastForward = 11,
|
15
|
+
BranchDeletionFailed = 12,
|
16
|
+
DefaultBranchDeletionFailed = 13,
|
17
|
+
RevertConflicts = 14,
|
18
|
+
EmptyRebasePatch = 15,
|
19
|
+
NoMatchingRemoteBranch = 16,
|
20
|
+
NoExistingRemoteBranch = 17,
|
21
|
+
NothingToCommit = 18,
|
22
|
+
NoSubmoduleMapping = 19,
|
23
|
+
SubmoduleRepositoryDoesNotExist = 20,
|
24
|
+
InvalidSubmoduleSHA = 21,
|
25
|
+
LocalPermissionDenied = 22,
|
26
|
+
InvalidMerge = 23,
|
27
|
+
InvalidRebase = 24,
|
28
|
+
NonFastForwardMergeIntoEmptyHead = 25,
|
29
|
+
PatchDoesNotApply = 26,
|
30
|
+
BranchAlreadyExists = 27,
|
31
|
+
BadRevision = 28,
|
32
|
+
NotAGitRepository = 29,
|
33
|
+
CannotMergeUnrelatedHistories = 30,
|
34
|
+
LFSAttributeDoesNotMatch = 31,
|
35
|
+
BranchRenameFailed = 32,
|
36
|
+
PathDoesNotExist = 33,
|
37
|
+
InvalidObjectName = 34,
|
38
|
+
OutsideRepository = 35,
|
39
|
+
LockFileAlreadyExists = 36,
|
40
|
+
NoMergeToAbort = 37,
|
41
|
+
LocalChangesOverwritten = 38,
|
42
|
+
UnresolvedConflicts = 39,
|
43
|
+
GPGFailedToSignData = 40,
|
44
|
+
ConflictModifyDeletedInBranch = 41,
|
45
|
+
PushWithFileSizeExceedingLimit = 42,
|
46
|
+
HexBranchNameRejected = 43,
|
47
|
+
ForcePushRejected = 44,
|
48
|
+
InvalidRefLength = 45,
|
49
|
+
ProtectedBranchRequiresReview = 46,
|
50
|
+
ProtectedBranchForcePush = 47,
|
51
|
+
ProtectedBranchDeleteRejected = 48,
|
52
|
+
ProtectedBranchRequiredStatus = 49,
|
53
|
+
PushWithPrivateEmail = 50,
|
54
|
+
ConfigLockFileAlreadyExists = 51,
|
55
|
+
RemoteAlreadyExists = 52,
|
56
|
+
TagAlreadyExists = 53,
|
57
|
+
MergeWithLocalChanges = 54,
|
58
|
+
RebaseWithLocalChanges = 55,
|
59
|
+
MergeCommitNoMainlineOption = 56,
|
60
|
+
UnsafeDirectory = 57,
|
61
|
+
PathExistsButNotInRef = 58
|
61
62
|
}
|
62
63
|
/** A mapping from regexes to the git error they identify. */
|
63
64
|
export declare const GitErrorRegexes: {
|
package/build/lib/errors.js
CHANGED
@@ -4,69 +4,71 @@ exports.RepositoryDoesNotExistErrorCode = exports.GitNotFoundErrorCode = exports
|
|
4
4
|
/** The git errors which can be parsed from failed git commands. */
|
5
5
|
var GitError;
|
6
6
|
(function (GitError) {
|
7
|
-
GitError[GitError["
|
8
|
-
GitError[GitError["
|
9
|
-
GitError[GitError["
|
10
|
-
GitError[GitError["
|
11
|
-
GitError[GitError["
|
12
|
-
GitError[GitError["
|
13
|
-
GitError[GitError["
|
14
|
-
GitError[GitError["
|
15
|
-
GitError[GitError["
|
16
|
-
GitError[GitError["
|
17
|
-
GitError[GitError["
|
18
|
-
GitError[GitError["
|
19
|
-
GitError[GitError["
|
20
|
-
GitError[GitError["
|
21
|
-
GitError[GitError["
|
22
|
-
GitError[GitError["
|
23
|
-
GitError[GitError["
|
24
|
-
GitError[GitError["
|
25
|
-
GitError[GitError["
|
26
|
-
GitError[GitError["
|
27
|
-
GitError[GitError["
|
28
|
-
GitError[GitError["
|
29
|
-
GitError[GitError["
|
30
|
-
GitError[GitError["
|
31
|
-
GitError[GitError["
|
32
|
-
GitError[GitError["
|
33
|
-
GitError[GitError["
|
34
|
-
GitError[GitError["
|
35
|
-
GitError[GitError["
|
36
|
-
GitError[GitError["
|
37
|
-
GitError[GitError["
|
38
|
-
GitError[GitError["
|
39
|
-
GitError[GitError["
|
40
|
-
GitError[GitError["
|
41
|
-
GitError[GitError["
|
42
|
-
GitError[GitError["
|
43
|
-
GitError[GitError["
|
44
|
-
GitError[GitError["
|
45
|
-
GitError[GitError["
|
46
|
-
GitError[GitError["
|
47
|
-
GitError[GitError["
|
7
|
+
GitError[GitError["BadConfigValue"] = 0] = "BadConfigValue";
|
8
|
+
GitError[GitError["SSHKeyAuditUnverified"] = 1] = "SSHKeyAuditUnverified";
|
9
|
+
GitError[GitError["SSHAuthenticationFailed"] = 2] = "SSHAuthenticationFailed";
|
10
|
+
GitError[GitError["SSHPermissionDenied"] = 3] = "SSHPermissionDenied";
|
11
|
+
GitError[GitError["HTTPSAuthenticationFailed"] = 4] = "HTTPSAuthenticationFailed";
|
12
|
+
GitError[GitError["RemoteDisconnection"] = 5] = "RemoteDisconnection";
|
13
|
+
GitError[GitError["HostDown"] = 6] = "HostDown";
|
14
|
+
GitError[GitError["RebaseConflicts"] = 7] = "RebaseConflicts";
|
15
|
+
GitError[GitError["MergeConflicts"] = 8] = "MergeConflicts";
|
16
|
+
GitError[GitError["HTTPSRepositoryNotFound"] = 9] = "HTTPSRepositoryNotFound";
|
17
|
+
GitError[GitError["SSHRepositoryNotFound"] = 10] = "SSHRepositoryNotFound";
|
18
|
+
GitError[GitError["PushNotFastForward"] = 11] = "PushNotFastForward";
|
19
|
+
GitError[GitError["BranchDeletionFailed"] = 12] = "BranchDeletionFailed";
|
20
|
+
GitError[GitError["DefaultBranchDeletionFailed"] = 13] = "DefaultBranchDeletionFailed";
|
21
|
+
GitError[GitError["RevertConflicts"] = 14] = "RevertConflicts";
|
22
|
+
GitError[GitError["EmptyRebasePatch"] = 15] = "EmptyRebasePatch";
|
23
|
+
GitError[GitError["NoMatchingRemoteBranch"] = 16] = "NoMatchingRemoteBranch";
|
24
|
+
GitError[GitError["NoExistingRemoteBranch"] = 17] = "NoExistingRemoteBranch";
|
25
|
+
GitError[GitError["NothingToCommit"] = 18] = "NothingToCommit";
|
26
|
+
GitError[GitError["NoSubmoduleMapping"] = 19] = "NoSubmoduleMapping";
|
27
|
+
GitError[GitError["SubmoduleRepositoryDoesNotExist"] = 20] = "SubmoduleRepositoryDoesNotExist";
|
28
|
+
GitError[GitError["InvalidSubmoduleSHA"] = 21] = "InvalidSubmoduleSHA";
|
29
|
+
GitError[GitError["LocalPermissionDenied"] = 22] = "LocalPermissionDenied";
|
30
|
+
GitError[GitError["InvalidMerge"] = 23] = "InvalidMerge";
|
31
|
+
GitError[GitError["InvalidRebase"] = 24] = "InvalidRebase";
|
32
|
+
GitError[GitError["NonFastForwardMergeIntoEmptyHead"] = 25] = "NonFastForwardMergeIntoEmptyHead";
|
33
|
+
GitError[GitError["PatchDoesNotApply"] = 26] = "PatchDoesNotApply";
|
34
|
+
GitError[GitError["BranchAlreadyExists"] = 27] = "BranchAlreadyExists";
|
35
|
+
GitError[GitError["BadRevision"] = 28] = "BadRevision";
|
36
|
+
GitError[GitError["NotAGitRepository"] = 29] = "NotAGitRepository";
|
37
|
+
GitError[GitError["CannotMergeUnrelatedHistories"] = 30] = "CannotMergeUnrelatedHistories";
|
38
|
+
GitError[GitError["LFSAttributeDoesNotMatch"] = 31] = "LFSAttributeDoesNotMatch";
|
39
|
+
GitError[GitError["BranchRenameFailed"] = 32] = "BranchRenameFailed";
|
40
|
+
GitError[GitError["PathDoesNotExist"] = 33] = "PathDoesNotExist";
|
41
|
+
GitError[GitError["InvalidObjectName"] = 34] = "InvalidObjectName";
|
42
|
+
GitError[GitError["OutsideRepository"] = 35] = "OutsideRepository";
|
43
|
+
GitError[GitError["LockFileAlreadyExists"] = 36] = "LockFileAlreadyExists";
|
44
|
+
GitError[GitError["NoMergeToAbort"] = 37] = "NoMergeToAbort";
|
45
|
+
GitError[GitError["LocalChangesOverwritten"] = 38] = "LocalChangesOverwritten";
|
46
|
+
GitError[GitError["UnresolvedConflicts"] = 39] = "UnresolvedConflicts";
|
47
|
+
GitError[GitError["GPGFailedToSignData"] = 40] = "GPGFailedToSignData";
|
48
|
+
GitError[GitError["ConflictModifyDeletedInBranch"] = 41] = "ConflictModifyDeletedInBranch";
|
48
49
|
// Start of GitHub-specific error codes
|
49
|
-
GitError[GitError["PushWithFileSizeExceedingLimit"] =
|
50
|
-
GitError[GitError["HexBranchNameRejected"] =
|
51
|
-
GitError[GitError["ForcePushRejected"] =
|
52
|
-
GitError[GitError["InvalidRefLength"] =
|
53
|
-
GitError[GitError["ProtectedBranchRequiresReview"] =
|
54
|
-
GitError[GitError["ProtectedBranchForcePush"] =
|
55
|
-
GitError[GitError["ProtectedBranchDeleteRejected"] =
|
56
|
-
GitError[GitError["ProtectedBranchRequiredStatus"] =
|
57
|
-
GitError[GitError["PushWithPrivateEmail"] =
|
50
|
+
GitError[GitError["PushWithFileSizeExceedingLimit"] = 42] = "PushWithFileSizeExceedingLimit";
|
51
|
+
GitError[GitError["HexBranchNameRejected"] = 43] = "HexBranchNameRejected";
|
52
|
+
GitError[GitError["ForcePushRejected"] = 44] = "ForcePushRejected";
|
53
|
+
GitError[GitError["InvalidRefLength"] = 45] = "InvalidRefLength";
|
54
|
+
GitError[GitError["ProtectedBranchRequiresReview"] = 46] = "ProtectedBranchRequiresReview";
|
55
|
+
GitError[GitError["ProtectedBranchForcePush"] = 47] = "ProtectedBranchForcePush";
|
56
|
+
GitError[GitError["ProtectedBranchDeleteRejected"] = 48] = "ProtectedBranchDeleteRejected";
|
57
|
+
GitError[GitError["ProtectedBranchRequiredStatus"] = 49] = "ProtectedBranchRequiredStatus";
|
58
|
+
GitError[GitError["PushWithPrivateEmail"] = 50] = "PushWithPrivateEmail";
|
58
59
|
// End of GitHub-specific error codes
|
59
|
-
GitError[GitError["ConfigLockFileAlreadyExists"] =
|
60
|
-
GitError[GitError["RemoteAlreadyExists"] =
|
61
|
-
GitError[GitError["TagAlreadyExists"] =
|
62
|
-
GitError[GitError["MergeWithLocalChanges"] =
|
63
|
-
GitError[GitError["RebaseWithLocalChanges"] =
|
64
|
-
GitError[GitError["MergeCommitNoMainlineOption"] =
|
65
|
-
GitError[GitError["UnsafeDirectory"] =
|
66
|
-
GitError[GitError["PathExistsButNotInRef"] =
|
60
|
+
GitError[GitError["ConfigLockFileAlreadyExists"] = 51] = "ConfigLockFileAlreadyExists";
|
61
|
+
GitError[GitError["RemoteAlreadyExists"] = 52] = "RemoteAlreadyExists";
|
62
|
+
GitError[GitError["TagAlreadyExists"] = 53] = "TagAlreadyExists";
|
63
|
+
GitError[GitError["MergeWithLocalChanges"] = 54] = "MergeWithLocalChanges";
|
64
|
+
GitError[GitError["RebaseWithLocalChanges"] = 55] = "RebaseWithLocalChanges";
|
65
|
+
GitError[GitError["MergeCommitNoMainlineOption"] = 56] = "MergeCommitNoMainlineOption";
|
66
|
+
GitError[GitError["UnsafeDirectory"] = 57] = "UnsafeDirectory";
|
67
|
+
GitError[GitError["PathExistsButNotInRef"] = 58] = "PathExistsButNotInRef";
|
67
68
|
})(GitError = exports.GitError || (exports.GitError = {}));
|
68
69
|
/** A mapping from regexes to the git error they identify. */
|
69
70
|
exports.GitErrorRegexes = {
|
71
|
+
"fatal: bad (?:numeric|boolean) config value '(.+)' for '(.+)'": GitError.BadConfigValue,
|
70
72
|
'ERROR: ([\\s\\S]+?)\\n+\\[EPOLICYKEYAGE\\]\\n+fatal: Could not read from remote repository.': GitError.SSHKeyAuditUnverified,
|
71
73
|
"fatal: Authentication failed for 'https://": GitError.HTTPSAuthenticationFailed,
|
72
74
|
'fatal: Authentication failed': GitError.SSHAuthenticationFailed,
|
package/build/lib/errors.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/errors.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AACnE,IAAY,
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../lib/errors.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AACnE,IAAY,QA8DX;AA9DD,WAAY,QAAQ;IAClB,2DAAc,CAAA;IACd,yEAAqB,CAAA;IACrB,6EAAuB,CAAA;IACvB,qEAAmB,CAAA;IACnB,iFAAyB,CAAA;IACzB,qEAAmB,CAAA;IACnB,+CAAQ,CAAA;IACR,6DAAe,CAAA;IACf,2DAAc,CAAA;IACd,6EAAuB,CAAA;IACvB,0EAAqB,CAA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ACpD,QAAQ,CAAC,qBAAqB;CACjC,CAAA;AAED;;;GAGG;AACU,QAAA,oBAAoB,GAAG,qBAAqB,CAAA;AAEzD,sEAAsE;AACzD,QAAA,+BAA+B,GAAG,iCAAiC,CAAA"}
|
package/package.json
CHANGED
package/script/config.js
CHANGED
@@ -14,6 +14,7 @@ function getConfig() {
|
|
14
14
|
tempFile: ''
|
15
15
|
}
|
16
16
|
|
17
|
+
// Possible values are ‘x64’, ‘arm’, ‘arm64’, ‘s390’, ‘s390x’, ‘mipsel’, ‘ia32’, ‘mips’, ‘ppc’ and ‘ppc64’
|
17
18
|
let arch = os.arch();
|
18
19
|
|
19
20
|
if (process.env.npm_config_arch) {
|
@@ -28,11 +29,6 @@ function getConfig() {
|
|
28
29
|
arch = 'ia32';
|
29
30
|
}
|
30
31
|
|
31
|
-
// Os.arch() calls it x32, we use x86 in actions, dugite-native calls it x86 and our embedded-git.json calls it ia32
|
32
|
-
if (arch === 'x32' || arch === 'x86') {
|
33
|
-
arch = 'ia32'
|
34
|
-
}
|
35
|
-
|
36
32
|
const key = `${process.platform}-${arch}`
|
37
33
|
|
38
34
|
const entry = embeddedGit[key]
|
package/script/download-git.js
CHANGED
@@ -4,7 +4,7 @@ const ProgressBar = require('progress')
|
|
4
4
|
const tar = require('tar')
|
5
5
|
const https = require('https')
|
6
6
|
const { createHash } = require('crypto')
|
7
|
-
const { rm, mkdir, createReadStream, createWriteStream, existsSync } = require('fs')
|
7
|
+
const { rm, rmSync, mkdir, createReadStream, createWriteStream, existsSync } = require('fs')
|
8
8
|
|
9
9
|
const config = require('./config')()
|
10
10
|
|
package/script/embedded-git.json
CHANGED
@@ -1,42 +1,42 @@
|
|
1
1
|
{
|
2
2
|
"win32-x64": {
|
3
|
-
"name": "dugite-native-v2.
|
4
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
5
|
-
"checksum": "
|
3
|
+
"name": "dugite-native-v2.43.3-fa29823-windows-x64.tar.gz",
|
4
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-windows-x64.tar.gz",
|
5
|
+
"checksum": "ef7ad6315e3ad1eeb01845518fdd64f2a09ec02b78c23a96f6663caeec26a243"
|
6
6
|
},
|
7
7
|
"win32-ia32": {
|
8
|
-
"name": "dugite-native-v2.
|
9
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
10
|
-
"checksum": "
|
8
|
+
"name": "dugite-native-v2.43.3-fa29823-windows-x86.tar.gz",
|
9
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-windows-x86.tar.gz",
|
10
|
+
"checksum": "992dd9dcc0df542cbd2cc3dd0430d8119723669ce53134ba108ff22c0790d551"
|
11
11
|
},
|
12
12
|
"darwin-x64": {
|
13
|
-
"name": "dugite-native-v2.
|
14
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
15
|
-
"checksum": "
|
13
|
+
"name": "dugite-native-v2.43.3-fa29823-macOS-x64.tar.gz",
|
14
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-macOS-x64.tar.gz",
|
15
|
+
"checksum": "02fb29a47a07e9a7f841888661f32ebc80a56930864dd19b674d80ffc429c96d"
|
16
16
|
},
|
17
17
|
"darwin-arm64": {
|
18
|
-
"name": "dugite-native-v2.
|
19
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
20
|
-
"checksum": "
|
18
|
+
"name": "dugite-native-v2.43.3-fa29823-macOS-arm64.tar.gz",
|
19
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-macOS-arm64.tar.gz",
|
20
|
+
"checksum": "f014b290f36d121bbc47b29b556044c4f6a2f6494cf78ed2eacfa501b77363b6"
|
21
21
|
},
|
22
22
|
"linux-x64": {
|
23
|
-
"name": "dugite-native-v2.
|
24
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
25
|
-
"checksum": "
|
23
|
+
"name": "dugite-native-v2.43.3-fa29823-ubuntu-x64.tar.gz",
|
24
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-ubuntu-x64.tar.gz",
|
25
|
+
"checksum": "87d6f143911bd398c5f17ff58ba16ee55b7ac6e84738762faed9d5db87e5b138"
|
26
26
|
},
|
27
|
-
"linux-
|
28
|
-
"name": "dugite-native-v2.
|
29
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
30
|
-
"checksum": "
|
27
|
+
"linux-ia32": {
|
28
|
+
"name": "dugite-native-v2.43.3-fa29823-ubuntu-x86.tar.gz",
|
29
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-ubuntu-x86.tar.gz",
|
30
|
+
"checksum": "9baac3cb0ccbc2db6519d208bf79186935ef882597c2f1c6064f413fe607ab16"
|
31
31
|
},
|
32
32
|
"linux-arm": {
|
33
|
-
"name": "dugite-native-v2.
|
34
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
35
|
-
"checksum": "
|
33
|
+
"name": "dugite-native-v2.43.3-fa29823-ubuntu-arm.tar.gz",
|
34
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-ubuntu-arm.tar.gz",
|
35
|
+
"checksum": "5e7d4bd8f232d634e8f5329a577bd17885c382b43b3cb55b82603a0854174663"
|
36
36
|
},
|
37
37
|
"linux-arm64": {
|
38
|
-
"name": "dugite-native-v2.
|
39
|
-
"url": "https://github.com/desktop/dugite-native/releases/download/v2.
|
40
|
-
"checksum": "
|
38
|
+
"name": "dugite-native-v2.43.3-fa29823-ubuntu-arm64.tar.gz",
|
39
|
+
"url": "https://github.com/desktop/dugite-native/releases/download/v2.43.3/dugite-native-v2.43.3-fa29823-ubuntu-arm64.tar.gz",
|
40
|
+
"checksum": "c7840d7dd4a799f429277199dd990dc53fa6fec163910df73c617eb1bab75cf1"
|
41
41
|
}
|
42
42
|
}
|