@goreleaser/goreleaser 2.15.0 → 2.15.2
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/README.md +7 -7
- package/lib.js +49 -19
- package/package.json +13 -14
package/README.md
CHANGED
|
@@ -92,19 +92,19 @@ A big **thank you** to all current, past, and future sponsors!
|
|
|
92
92
|
<h3>Diamond</h3>
|
|
93
93
|
<a href="https://serpapi.com/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://github.com/serpapi.png" alt="SerpApi" width="128" height="128"/></a>
|
|
94
94
|
<h3>Platinum</h3>
|
|
95
|
-
<a href="https://opensource.sap.com?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/2531208?v=4
|
|
95
|
+
<a href="https://opensource.sap.com?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/2531208?s=112&v=4" alt="SAP" width="112" height="112"/></a>
|
|
96
96
|
<h3>Gold</h3>
|
|
97
|
-
<a href="https://opensource.mercedes-benz.com/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/34240465?v=4
|
|
98
|
-
<a href="https://nitric.io?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/72055470?v=4
|
|
97
|
+
<a href="https://opensource.mercedes-benz.com/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/34240465?s=96&v=4" alt="Mercedes-Benz Group" width="96" height="96"/></a>
|
|
98
|
+
<a href="https://nitric.io?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/72055470?s=96&v=4" alt="nitric" width="96" height="96"/></a>
|
|
99
99
|
<h3>Silver</h3>
|
|
100
100
|
<a href="https://depot.dev?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=opencollective" target="_blank" rel="noopener sponsored" ><img src="https://images.opencollective.com/depot/39125a1/logo.png?height=80" alt="Depot" width="80" height="80"/></a>
|
|
101
101
|
<a href="https://www.n-ix.com/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=opencollective" target="_blank" rel="noopener sponsored" ><img src="https://images.opencollective.com/n-ix-ltd/575a7a5/logo.png?height=80" alt="N-iX Ltd" width="80" height="80"/></a>
|
|
102
102
|
<h3>Bronze</h3>
|
|
103
|
-
<a href="https://www.conet.de?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/35725664?v=4
|
|
104
|
-
<a href="https://encore.dev?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/50438175?v=4
|
|
105
|
-
<a href="https://www.comet.com/site/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/31487821?v=4
|
|
103
|
+
<a href="https://www.conet.de?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/35725664?s=64&v=4" alt="conet cloud" width="64" height="64"/></a>
|
|
104
|
+
<a href="https://encore.dev?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/50438175?s=64&v=4" alt="Encore" width="64" height="64"/></a>
|
|
105
|
+
<a href="https://www.comet.com/site/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/31487821?s=64&v=4" alt="Comet" width="64" height="64"/></a>
|
|
106
106
|
<a href="https://about.gitea.com/?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=opencollective" target="_blank" rel="noopener sponsored" ><img src="https://images.opencollective.com/gitea/bf35c2f/logo.png?height=64" alt="Gitea" width="64" height="64"/></a>
|
|
107
|
-
<a href="https://www.interviewpal.com?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/268665632?v=4
|
|
107
|
+
<a href="https://www.interviewpal.com?utm_source=goreleaser&utm_medium=sponsor&utm_campaign=homepage&utm_content=github" target="_blank" rel="noopener sponsored" ><img src="https://avatars.githubusercontent.com/u/268665632?s=64&v=4" alt="InterviewPal.com" width="64" height="64"/></a>
|
|
108
108
|
<h3>And many more!</h3>
|
|
109
109
|
<p>See the full list <a href="https://goreleaser.com/sponsors" target="_blank" rel="noopener sponsored">here</a>.</p>
|
|
110
110
|
</div>
|
package/lib.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// This file was generated by GoReleaser. DO NOT EDIT.
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
import crypto from "crypto";
|
|
4
|
+
import http from "http";
|
|
5
|
+
import https from "https";
|
|
4
6
|
import path from "path";
|
|
5
7
|
import JSZip from "jszip";
|
|
6
8
|
import { x as tarExtract } from "tar";
|
|
7
|
-
import axios from "axios";
|
|
8
9
|
import { ProxyAgent } from "proxy-agent";
|
|
9
10
|
import { spawnSync } from "child_process";
|
|
10
11
|
import { fileURLToPath } from "url";
|
|
@@ -178,7 +179,7 @@ const verify = (filename, checksum) => {
|
|
|
178
179
|
}
|
|
179
180
|
};
|
|
180
181
|
|
|
181
|
-
const download = async (url, filename) => {
|
|
182
|
+
const download = async (url, filename, maxRedirects = 10) => {
|
|
182
183
|
try {
|
|
183
184
|
console.log(`Downloading ${url} to ${filename}...`);
|
|
184
185
|
const dir = path.dirname(filename);
|
|
@@ -186,27 +187,56 @@ const download = async (url, filename) => {
|
|
|
186
187
|
fs.mkdirSync(dir, { recursive: true });
|
|
187
188
|
}
|
|
188
189
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
responseType: "stream",
|
|
193
|
-
timeout: 300000, // 5min
|
|
194
|
-
httpAgent: agent,
|
|
195
|
-
httpsAgent: agent,
|
|
196
|
-
});
|
|
190
|
+
return new Promise((resolve, reject) => {
|
|
191
|
+
const parsedUrl = new URL(url);
|
|
192
|
+
const mod = parsedUrl.protocol === "https:" ? https : http;
|
|
197
193
|
|
|
198
|
-
|
|
199
|
-
|
|
194
|
+
const request = mod.get(url, { agent }, (response) => {
|
|
195
|
+
if (
|
|
196
|
+
response.statusCode >= 300 &&
|
|
197
|
+
response.statusCode < 400 &&
|
|
198
|
+
response.headers.location
|
|
199
|
+
) {
|
|
200
|
+
if (maxRedirects <= 0) {
|
|
201
|
+
reject(new Error("Too many redirects"));
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
download(response.headers.location, filename, maxRedirects - 1)
|
|
205
|
+
.then(resolve)
|
|
206
|
+
.catch(reject);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
200
209
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
210
|
+
if (response.statusCode !== 200) {
|
|
211
|
+
reject(
|
|
212
|
+
new Error(
|
|
213
|
+
`HTTP ${response.statusCode}: ${response.statusMessage}`,
|
|
214
|
+
),
|
|
215
|
+
);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const writer = fs.createWriteStream(filename);
|
|
220
|
+
response.pipe(writer);
|
|
221
|
+
|
|
222
|
+
writer.on("finish", () => {
|
|
223
|
+
console.log(`Download complete: ${filename}`);
|
|
224
|
+
resolve(dir);
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
writer.on("error", (err) => {
|
|
228
|
+
console.error(`Error writing file: ${err.message}`);
|
|
229
|
+
reject(err);
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
request.on("error", (err) => {
|
|
234
|
+
reject(new Error(`Request failed: ${err.message}`));
|
|
205
235
|
});
|
|
206
236
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
reject(
|
|
237
|
+
request.setTimeout(300000, () => {
|
|
238
|
+
request.destroy();
|
|
239
|
+
reject(new Error("Request timed out"));
|
|
210
240
|
});
|
|
211
241
|
});
|
|
212
242
|
} catch (err) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goreleaser/goreleaser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.15.
|
|
4
|
+
"version": "2.15.2",
|
|
5
5
|
"description": "Release engineering, simplified",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"postinstall": "node install.js",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"goreleaser": "run-goreleaser.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"axios": "^1.8.2",
|
|
35
34
|
"jszip": "^3.10.1",
|
|
36
35
|
"proxy-agent": "^7.0.0",
|
|
37
36
|
"tar": "^7.4.3"
|
|
@@ -39,74 +38,74 @@
|
|
|
39
38
|
"archives": {
|
|
40
39
|
"darwin-arm64": {
|
|
41
40
|
"name": "goreleaser_Darwin_arm64.tar.gz",
|
|
42
|
-
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.
|
|
41
|
+
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.2/goreleaser_Darwin_arm64.tar.gz",
|
|
43
42
|
"bins": [
|
|
44
43
|
"goreleaser"
|
|
45
44
|
],
|
|
46
45
|
"format": "tar.gz",
|
|
47
46
|
"checksum": {
|
|
48
47
|
"algorithm": "sha256",
|
|
49
|
-
"digest": "
|
|
48
|
+
"digest": "985c8509c62ccf2f48371868aa478a13ba075ff54457fdbcd2c0ba54eda8ad69"
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
"darwin-x64": {
|
|
53
52
|
"name": "goreleaser_Darwin_x86_64.tar.gz",
|
|
54
|
-
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.
|
|
53
|
+
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.2/goreleaser_Darwin_x86_64.tar.gz",
|
|
55
54
|
"bins": [
|
|
56
55
|
"goreleaser"
|
|
57
56
|
],
|
|
58
57
|
"format": "tar.gz",
|
|
59
58
|
"checksum": {
|
|
60
59
|
"algorithm": "sha256",
|
|
61
|
-
"digest": "
|
|
60
|
+
"digest": "5a0504a3be175fad742a5d00f77afb6281e4aa1edd3575005d6128a0f3445b92"
|
|
62
61
|
}
|
|
63
62
|
},
|
|
64
63
|
"linux-arm64": {
|
|
65
64
|
"name": "goreleaser_Linux_arm64.tar.gz",
|
|
66
|
-
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.
|
|
65
|
+
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.2/goreleaser_Linux_arm64.tar.gz",
|
|
67
66
|
"bins": [
|
|
68
67
|
"goreleaser"
|
|
69
68
|
],
|
|
70
69
|
"format": "tar.gz",
|
|
71
70
|
"checksum": {
|
|
72
71
|
"algorithm": "sha256",
|
|
73
|
-
"digest": "
|
|
72
|
+
"digest": "5db66761a98f6693161e49e1a95d28d2673a892ba60cb4a5e16736cafd41c4c9"
|
|
74
73
|
}
|
|
75
74
|
},
|
|
76
75
|
"linux-x64": {
|
|
77
76
|
"name": "goreleaser_Linux_x86_64.tar.gz",
|
|
78
|
-
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.
|
|
77
|
+
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.2/goreleaser_Linux_x86_64.tar.gz",
|
|
79
78
|
"bins": [
|
|
80
79
|
"goreleaser"
|
|
81
80
|
],
|
|
82
81
|
"format": "tar.gz",
|
|
83
82
|
"checksum": {
|
|
84
83
|
"algorithm": "sha256",
|
|
85
|
-
"digest": "
|
|
84
|
+
"digest": "0ebdbf0353aba566b969dde746cc4e4806f96c27aa2f3971b229a9df7611fedc"
|
|
86
85
|
}
|
|
87
86
|
},
|
|
88
87
|
"win32-arm64": {
|
|
89
88
|
"name": "goreleaser_Windows_arm64.zip",
|
|
90
|
-
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.
|
|
89
|
+
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.2/goreleaser_Windows_arm64.zip",
|
|
91
90
|
"bins": [
|
|
92
91
|
"goreleaser.exe"
|
|
93
92
|
],
|
|
94
93
|
"format": "zip",
|
|
95
94
|
"checksum": {
|
|
96
95
|
"algorithm": "sha256",
|
|
97
|
-
"digest": "
|
|
96
|
+
"digest": "078e274df1f5a6f2477a8938dec417bc3c1946cc442be4a9df6775d301e48359"
|
|
98
97
|
}
|
|
99
98
|
},
|
|
100
99
|
"win32-x64": {
|
|
101
100
|
"name": "goreleaser_Windows_x86_64.zip",
|
|
102
|
-
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.
|
|
101
|
+
"url": "https://github.com/goreleaser/goreleaser/releases/download/v2.15.2/goreleaser_Windows_x86_64.zip",
|
|
103
102
|
"bins": [
|
|
104
103
|
"goreleaser.exe"
|
|
105
104
|
],
|
|
106
105
|
"format": "zip",
|
|
107
106
|
"checksum": {
|
|
108
107
|
"algorithm": "sha256",
|
|
109
|
-
"digest": "
|
|
108
|
+
"digest": "7459832946dbe122c144f8d7f87484d8572ca005b779310aa6bb03346e8de17a"
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
111
|
}
|