8000 coco/fix node archiver repackaging files by coco-super · Pull Request #897 · alibaba/funcraft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

coco/fix node archiver repackaging files #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

coco-super
Copy link
Collaborator

fixes #838

@coco-super coco-super marked this pull request as draft April 28, 2020 07:40
@coco-super coco-super marked this pull request as ready for review April 28, 2020 07:40
@vangie vangie self-requested a review April 28, 2020 08:02
@@ -98,7 +98,8 @@ async function zipFolder(zipArchiver, folder, folders, funignore, codeUri, prefi
if (!_.isEmpty(relative)) {
zipArchiver.append(null, {
name: relative,
type: 'directory'
type: 'directory',
prefix
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 prefix 是漏掉了么?我看默认值是 ''

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

�是漏掉了,缺少 prefix ,压缩 zip 的内容不正确导致解压 zip 时目录出现重复

@@ -172,7 +172,7 @@ function convertZones(nasZones, zones, storageType = 'Performance') {
const vswitchId = zones.filter(f => { return f.zoneId === zoneId; });
return {
zoneId,
vswitchId,
vswitchId: _.head(vswitchId).vswitchId,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里之前数据结构处理不对么?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对的,之前有点问题。

@vangie vangie merged commit b7ad02d into alibaba:master Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fun package 针对大依赖的场景重复上传依赖
2 participants
0