Skip to content
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

Avoid unicode filename #78

Merged
merged 1 commit into from
May 13, 2022
Merged

Avoid unicode filename #78

merged 1 commit into from
May 13, 2022

Conversation

tbg
Copy link
Contributor

@tbg tbg commented May 11, 2022

This is similar to 53e9d3e.

Over at https://github.com/cockroachdb/cockroach, we use bazel and it
chokes on this file:

java.io.IOException: Error extracting
[...]/com_github_maruel_panicparse_v2-v2.2.1.zip to [...]:
[...]/com_github_maruel_panicparse_v2/cmd/panic/internal/utf8/?tf8.go
(Illegal byte sequence)

which is why we're on a fork so far. It would be nice to avoid this.

There is an (eternal, it seems) upstream discussion, so there is
little home of bazel starting to support non-unicode filenames.

I wonder if the loss in test coverage (if any) is acceptable in return
for avoiding build problems like the ones we've been seeing.

@tbg tbg marked this pull request as ready for review May 11, 2022 09:55
@maruel
Copy link
Owner

maruel commented May 11, 2022

Test failures are legit. Also there's probably 2~3 comments to update.

@tbg tbg force-pushed the non-ascii-file branch 2 times, most recently from 9ec113c to b392e85 Compare May 12, 2022 12:55
@tbg
Copy link
Contributor Author

tbg commented May 12, 2022

Thanks! Tests should be passing now. I looked for comments that needed changes (git grep -i utf essentially) and didn't find anything obvious. But I did add a comment in utf8.go explaining why it's not also a unicode filename.

@codecov
Copy link

codecov bot commented May 12, 2022

Codecov Report

Merging #78 (d87647d) into main (c579e89) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main     #78   +/-   ##
=====================================
  Coverage   82.1%   82.1%           
=====================================
  Files         12      12           
  Lines       2761    2761           
=====================================
  Hits        2267    2267           
  Misses       423     423           
  Partials      71      71           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c579e89...d87647d. Read the comment docs.

This is similar to 53e9d3e.

Over at https://github.com/cockroachdb/cockroach, we use bazel and it
chokes on this file:

```
java.io.IOException: Error extracting
[...]/com_github_maruel_panicparse_v2-v2.2.1.zip to [...]:
[...]/com_github_maruel_panicparse_v2/cmd/panic/internal/utf8/?tf8.go
(Illegal byte sequence)
```

which is why we're on a fork so far. It would be nice to avoid this.

There is an (eternal, it seems) [upstream discussion], so there is
little home of bazel starting to support non-unicode filenames.

I wonder if the loss in test coverage (if any) is acceptable in return
for avoiding build problems like the ones we've been seeing.

[upstream discussion]: bazelbuild/bazel#374
@maruel
Copy link
Owner

maruel commented May 13, 2022

Thanks!

@maruel maruel merged commit 95bad65 into maruel:main May 13, 2022
@maruel
Copy link
Owner

maruel commented May 13, 2022

@tbg tbg deleted the non-ascii-file branch May 13, 2022 15:06
@tbg
Copy link
Contributor Author

tbg commented May 13, 2022

Wonderful, thanks a lot Marc-Antoine.

tbg added a commit to tbg/cockroach that referenced this pull request May 13, 2022
This is a reincarnation of cockroachdb#81089, which was reverted in cockroachdb#81126.
This time around, we pick up upstream PR [78] which renames the
unicode file that prompted cockroachdb#81126.

[78]: maruel/panicparse#78

Release note: None
tbg added a commit to tbg/cockroach that referenced this pull request May 13, 2022
This is a reincarnation of cockroachdb#81089, which was reverted in cockroachdb#81126.
This time around, we pick up upstream PR [78] which renames the
unicode file that prompted cockroachdb#81126.

[78]: maruel/panicparse#78

Release note: None
craig bot pushed a commit to cockroachdb/cockroach that referenced this pull request May 14, 2022
81240: vendor: bump panicparse to v2.2.2 r=HonoreDB,rickystewart a=tbg

This is a reincarnation of #81089, which was reverted in #81126.
This time around, we pick up upstream PR [78] which renames the
unicode file that prompted #81126.

[78]: maruel/panicparse#78

Release note: None


Co-authored-by: Tobias Grieger <tobias.b.grieger@gmail.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.

2 participants