Closed whikloj closed 1 year ago
Hmm, AFAICS there were few OS specific things that could break the code, the only thing that comes to my mind would be the PHP_EOL
, all the tests, with the exception of the fetch one, worked fine on my Windows box after I removed those files with "bad" names.
Thanks for warning, I'll investigate once I get some free time here =]
Yeah, I remember from a Java project that setting up Github Actions under Windows required some special tweaks, so it might not be the code but until I can resolve them I wanted to draw attention to it.
Update: I know that at least one user used the updated package in Windows and it worked fine.
That is good, but unfortunately I still can't check that any of my future changes doesn't break Windows compatibility until I can get the tests to run under Windows.
I'll have some free time this weekend, so I'll try to check these issues :)
On a first sight it looks like it's related to line-breaks (e.g. checksums using \n
while the code is using PHP_EOL
, which will end up as \r\n
on Windows).
I've done some work on standardizing the path separators and some other changes here https://github.com/whikloj/BagItTools/tree/minor-cleanup
Great, I'll move to there :)
Hey @jonasraoni I am still getting 2 failures on the Windows test in Github Actions. Both are related to Tar Bzip files. It appears that the Tar Gzip tests work fine. So I am wondering if there is a) a problem with bzip under Windows or b) some special setup necessary?
Actually, it appears as if its more than 2 failing tests. https://github.com/whikloj/BagItTools/runs/7622196030?check_suite_focus=true
I just got a fresh branch in my machine, reinstalled the packages and no signal of errors.
Looks like it's something on the GitHub action, I've enabled it on my account (and I see the same errors now), so I'll try to debug later 😁
Partially resolved by #51, waiting on https://github.com/donatj/mock-webserver/pull/42
There are several tests that do not pass when run under Windows, this could be intricacies in Windows on Github Actions or it could be failures of the code.
This ticket is serve as notice that there are currently no guarantees if you want to use this library under PHP on Windows. Currently I'd recommend the Windows Subsystem for Linux.
https://github.com/whikloj/BagItTools/runs/7055596694?check_suite_focus=true
pinging @jonasraoni