File tree 3 files changed +25
-7
lines changed
3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,7 @@ you can use this shorthand,
127
127
` ` ` json
128
128
{
129
129
"blobpack": {
130
- "artifacts": [
131
- "boring"
132
- ]
130
+ "artifacts": ["boring"]
133
131
}
134
132
}
135
133
` ` `
@@ -143,9 +141,23 @@ you can use the `include` property,
143
141
"include": {
144
142
"resources": ["logger"]
145
143
},
146
- "artifacts": [
147
- "boring"
148
- ]
144
+ "artifacts": ["boring"]
145
+ }
146
+ }
147
+ ` ` `
148
+
149
+ # ### Bento support
150
+
151
+ If you need Serverless Bento, you can change `src` and `checksumPrefix` properties :
152
+
153
+ ` ` ` json
154
+ {
155
+ "blobpack": {
156
+ "name": "benthos-lambda",
157
+ "version": "4.10.0",
158
+ "platform": "linux_amd64",
159
+ "checksumPrefix": "bento",
160
+ "src": "https://github.com/warpstreamlabs/bento/releases/download"
149
161
}
150
162
}
151
163
` ` `
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ export const loadConfig = async (configPath) => {
10
10
)
11
11
}
12
12
13
+ if ( typeof config . checksumPrefix === 'undefined' ) {
14
+ config . checksumPrefix = 'benthos'
15
+ }
16
+
13
17
return config
14
18
}
15
19
Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ const get = async (benthos) => {
38
38
39
39
const [ data , checksums ] = await Promise . all ( [
40
40
download ( `${ root } /${ name } ` ) ,
41
- download ( `${ root } /benthos_${ benthos . version } _checksums.txt` )
41
+ download (
42
+ `${ root } /${ benthos . checksumPrefix } _${ benthos . version } _checksums.txt`
43
+ )
42
44
] )
43
45
44
46
return { name, data, checksums }
You can’t perform that action at this time.
0 commit comments