22 Sep 2021 |
Jinny | 上周的周报需要补一下吗 | 08:46:49 |
@xuanwo:matrix.org | 不用啦 | 08:46:58 |
@xuanwo:matrix.org | 以后会用新的方式 | 08:47:06 |
@xuanwo:matrix.org | https://forum.beyondstorage.io/t/topic/241 | 08:47:16 |
@xuanwo:matrix.org | 大家有空的话来看一下这个提案: Proposal: Community Merge | 08:47:56 |
@xuanwo:matrix.org | zhangjiayu 是 golang 的初学者,首先尝试解决 issue: https://github.com/beyondstorage/go-service-s3/issues/86 | 09:26:05 |
@xuanwo:matrix.org | 有问题的话可以直接在群里问哈~ | 09:26:19 |
Joey | 嗯嗯 | 09:26:25 |
Joey | 我先看看文档 | 09:26:32 |
23 Sep 2021 |
@xuanwo:matrix.org | Jinny: 我们 go-service-fs 里面的 evalSymlink 行为是怎么样的? | 02:31:00 |
@xuanwo:matrix.org | 比如说 /tmp/abc ,/tmp symlink 到 /private/tmp,然后 abc 实际上不存在 | 02:31:31 |
@xuanwo:matrix.org | 这个时候会返回什么? | 02:31:41 |
Jinny | /private/tmp/abc | 02:32:05 |
@xuanwo:matrix.org | got | 02:34:58 |
@xuanwo:matrix.org | In reply to @jinny1226:matrix.org /private/tmp/abc 可能需要一点文档 | 02:37:58 |
@xuanwo:matrix.org | 因为我们的 evalSymlink 跟 filepath.EvalSymlinks 的行为是有差异的 | 02:38:13 |
@xuanwo:matrix.org | 哦,我看到了,evalSymlinks 调用了 evalSymlink | 02:38:41 |
@xuanwo:matrix.org | https://github.com/beyondstorage/go-service-fs/issues/82 | 02:42:10 |
Joey | 我来改这个么 | 02:43:01 |
@xuanwo:matrix.org | In reply to @zhangjiayu:matrix.org 我来改这个么 你可以先看一下 https://github.com/beyondstorage/go-service-fs/issues/81,这个 fix 比较简单~ | 02:44:02 |
@xuanwo:matrix.org | In reply to @zhangjiayu:matrix.org 我来改这个么 * 你可以先看一下 https://github.com/beyondstorage/go-service-fs/issues/81 ,这个 fix 比较简单~ | 02:44:06 |
Joey | 嗯嗯 | 02:44:13 |
@xuanwo:matrix.org | 正好能用来熟悉一下 github 的流程 | 02:44:25 |
@xuanwo:matrix.org | * 正好能用来熟悉一下 github 的 PR 流程 | 02:44:30 |
Jinny | 初始化是特意用的pathfile.EvalSymlinks(),如果目录本身是不存在的,应该在初始化的时候就返回错误 | 02:46:57 |
Jinny | 这样理解对吗 | 02:47:08 |
@xuanwo:matrix.org | 有点问题 | 02:47:56 |
@xuanwo:matrix.org | 如果 workdir 不存在,go-service-fs 需要把这个目录创建出来 | 02:48:11 |
@xuanwo:matrix.org | 这是为什么 newStorager 里面有 MkdirAll 的原因 | 02:48:26 |
@xuanwo:matrix.org | 后来是发现用户传进来的 WorkDir 本身可能是一个 symlink,所以需要先 eval,这就引入了我们现在遇到的问题:如果目录不存在, eval 的时候就直接返回错误了 | 02:49:13 |