16 Jul 2021 |
@xuanwo:matrix.org | github action 自己 push 的不会触发新的 workflow run | 07:34:10 |
17 Jul 2021 |
bokket | error: pathspec 'RFC-11:Add Tcp pair' did not match any file(s) known to git. 这个问题看起来跟 https://github.com/stefanzweifel/git-auto-commit-action/issues/141 有关 有人遇到过吗 | 04:12:39 |
@xuanwo:matrix.org | 具体是哪个workflow?发个链接我看看 | 04:14:33 |
@xuanwo:matrix.org | btw,branch name 里面是不能有 : 的 | 04:18:25 |
@xuanwo:matrix.org | ref: https://git-scm.com/docs/git-check-ref-format | 04:18:39 |
19 Jul 2021 |
@xuanwo:matrix.org | https://github.com/beyondstorage/community/issues/22 | 02:06:44 |
@xuanwo:matrix.org | it works | 02:06:48 |
@xuanwo:matrix.org | 我们一个星期居然能有这么多 pr … | 02:07:24 |
@xuanwo:matrix.org | 有一部分是 bump version 带来的重复工作 | 02:07:38 |
Lance | In reply to @xuanwo:matrix.org it works 我刚想问结果怎么样 | 02:11:33 |
@xuanwo:matrix.org | 🤣,专业的脚本大师 | 02:12:23 |
Lance | 那,我们的 weekly report 还写么? | 02:24:52 |
@xuanwo:matrix.org | 🤨,简单组织下? | 02:25:50 |
21 Jul 2021 |
| @abyss-w:matrix.org set a profile picture. | 07:01:30 |
23 Jul 2021 |
@xuanwo:matrix.org | Download image.png | 03:48:40 |
@xuanwo:matrix.org | Logo and 头图 | 03:48:48 |
24 Jul 2021 |
@xuanwo:matrix.org | Download image.png | 04:45:42 |
@xuanwo:matrix.org | 我们 Github 的 Logo 也改好了,组织看起来不会那么丑了( | 04:45:57 |
27 Jul 2021 |
| yoshiki joined the room. | 00:43:40 |
yoshiki | hello,我想问个问题,我通过示例代码,用 var buf bytes.Buffer,传入 Read 方法,能读取文件到 buf 里面,但通过 var p []byte; buf := bytes.NewBuffer(p) 将 buf 传入 Read 方法好像就不工作了。 | 00:49:26 |
Lance | 有没有更详细的代码? | 02:36:12 |
yoshiki | 稍等 | 02:36:30 |
yoshiki | func TestReadBytes(t *testing.T) {
p := make([]byte, 10)
buf := bytes.NewBuffer(p)
s, _ := fs.NewStorager(pairs.WithWorkDir("/tmp"))
n, _ := s.Read("hello.txt", buf)
log.Println(n, p)
}
func TestRead(t *testing.T) {
var buf bytes.Buffer
s, _ := fs.NewStorager(pairs.WithWorkDir("/tmp"))
n, _ := s.Read("hello.txt", &buf)
fmt.Println(n, buf)
} | 02:39:14 |
Lance | 我看一下 | 02:40:32 |
Lance | NewBuffer creates and initializes a new Buffer using buf as its initial contents. | 02:44:05 |
Lance | 第一个用例,数据不是读到了 p 里边,你看一下 buf.String() 就知道结果了 | 02:44:47 |
yoshiki | 噢,我懂了,谢谢解答 | 02:45:01 |
Lance | 没事,遇到问题都欢迎来问😁 | 02:45:32 |
@xuanwo:matrix.org | https://github.com/beyondstorage/site/pull/155 | 07:32:44 |
@xuanwo:matrix.org | 我加了一个 contributor guide,大家看看是不是还需要再补充些内容? | 07:33:10 |