Skip to content

Commit 7c055d2

Browse files
author
高魏洪
committed
fix: layer code support http bug
1 parent 3fe39c2 commit 7c055d2

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

__tests__/e2e/ci-mac-linux.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ s deploy --trigger -t s2.yaml
156156
s deploy --async-invoke-config -t s2.yaml
157157
s info -t s2.yaml
158158
s remove -y -t s2.yaml
159+
160+
echo "test layer code support http"
161+
s layer publish --layer-name test --code https://images.devsapp.cn/bin/supergateway --compatible-runtime custom.debian12
162+
s layer remove --layer-name test
159163
cd ..
160164

161165
echo " ********* test scaling config *********"

publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Type: Component
33
Name: fc3
44
Provider:
55
- 阿里云
6-
Version: 0.1.17
6+
Version: 0.1.18
77
Description: 阿里云函数计算全生命周期管理
88
HomePage: https://github.com/devsapp/fc3
99
Organization: 阿里云函数计算(FC)

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export async function _downloadFromUrl(url: string): Promise<string> {
341341
logger.debug(`Downloaded file to: ${downloadPath}`);
342342

343343
// 返回下载文件路径,由主流程决定是否需要压缩
344-
return downloadPath;
344+
return downloadPath.endsWith('.zip') ? downloadPath : `${downloadPath}.zip`;
345345
} catch (error) {
346346
// 如果下载失败,清理临时目录
347347
try {

0 commit comments

Comments
 (0)