Hello, I'm using files target to include some tex...
# general
r
Hello, I'm using files target to include some text files that are used in unit tests. A few of these files intentionally contain non UTF-8 characters, which are important to the test cases. However, when I run pants package goal, it fails with the following error Is there a way to include such files and make the package goal work?
b
Ah, sorry for the trouble. That looks like a legitimate bug in pants. Could you file an bug? https://github.com/pantsbuild/pants/issues/new/choose Are you interested in trying to fix it? In terms of work-arounds, I think one just has to avoid
--changed-since=...
where the diff includes changes to the non-UTF-8 parts of the files.
r
Hi, thanks for the response @broad-processor-92400 I’ll go ahead and file a bug report. And yeah, with a bit of guidance, I’d be happy to take a shot at fixing it.
b
Thank you!