Use line endings appropriate for current platform#118
Conversation
|
I think one can add openssl via vcpkg: https://github.com/sfackler/rust-openssl/blob/master/.github/workflows/ci.yml#L94 Ideally, yes, one would add windows CI too so that it can be tested on windows as well, given we have windows platform specific tests now. |
The pem library will always use CRLF when calling the encode function.
21e428f to
ee9dca0
Compare
This did indeed solve this particular issue, but I've been getting some follow up issues for other packages. I've resolved one. but currently I'm stuck on building |
|
@frjonsen it's ok, is there a way to mark a github CI job as allow failure? Or alternatively, one could comment it all out. |
63c04dd to
d6f5d46
Compare
Could probably do that. I see though that you've been working on resolving this, so thanks for that. I was looking into this during work time, so unfortunately had to prioritize other things, since using the |
I've thought that your PR is useful and it's not really your fault that there is no CI for windows right now, so I thought I would help you. PR #103 I left open for a long time hoping for smaller fixes to it, but they didn't happen. Later on it turned out that one of the functions I wrote to support that PR had an issue. botan's maintainer has been very helpful in resolving the build issues on windows, I think now we'll have to wait until a release of botan includes randombit/botan#3504 |
|
Update: there has been no release of botan yet. There is also a PR randombit/botan-rs#84 to add windows CI to botan-rs, which seems to be green for them. |
|
Hi @est31 just wanted to give an update here - newly released |
|
Hmm I wonder if it's possible to have the botan dev dependency and tests only for non-windows platforms. @frjonsen could you put botan into |
|
Hmm I pushed it manually... now it complains about openssl not being found :/ Not sure why that is the case given that we install it just before via vcpkg. |
cea5275 to
e4088a0
Compare
Botan's rust bindings don't compile on windows
|
Thanks for finishing the PR. It looks like you had a very productive day yesterday! |
|
Yes I did some trial and error with the CI to make it green. Sorry for the notification noise :). |
In #118, windows CI was added but the botan specific tests were disabled as the build for rust doesn't work. With the help of upstream, we can now enable botan in CI as well. --- Co-authored-by: Daniel McCarney <daniel@binaryparadox.net>
PR in reference to #115
Adds platform checking to decide what line endings to use when serializing to PEM.
I tried activating Github Actions for Windows to test correctness for that platform too, but unfortunately it seems the dev-dependency
openssldoes not work: https://github.com/frjonsen/rcgen/actions/runs/4655417259/jobs/8238039795