Skip to content

Conversation

@NobodyXu
Copy link

@NobodyXu NobodyXu commented Jul 22, 2023

parse_tar now break the iteration once it encounters None from parse_entry instead of using Iterator::flatten, which keeps going instead of breaking the loop.

It also fixed parse_entry_streaming to treat eof as end of the archive file as per the spec.

Why rewrite using winnow?

Related blog post:

* Add dependabot

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Add GHA workflow

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Fix `ci.yml`: Add `on`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Add `concurrency` to `ci.yml`

And use sparse registry

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

* Only run CI only push for branch main

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>

---------

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
`parse_tar` now break the iteration once it encounters `None` from
`parse_entry` instead of using `Iterator::flatten`, which keeps going
instead of breaking the loop.

It also fixed `parse_entry_streaming` to treat eof as end of the archive
file as per the spec.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
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.

1 participant