-
Notifications
You must be signed in to change notification settings - Fork 95
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
feature/legacy support #93
Conversation
the travis failure gets cleaned up if you do a |
@rustysec, the caching problem was encountered on the master branch. I fixed it by manually clearing the cache on that branch. I believe that the problem happens when a new version of Rust is released. I'd rather not remove caching entirely because it does speed up the CI considerably. I'd rather open a new issue to investigate this problem. |
Gotcha, I will fix the config |
stable is failing in travis, but beta and nightly are working. i'm building with stable on my machine(s) and all is well. |
I wonder if the build failure is due to an issue on |
@punkstarman That does sound realistic. I wonder if we could just drop Nightly from the testing matrix - in my experience, it should be always backwards-compatible with stable Rust, and when it's not, it's an issue with Rust itself and not with the crate so testing is sort of pointless. |
@RReverser the problem is on Stable not Nightly. I don't mind removing Nightly from CI script. Yet, IMO the point of building with Nightly is to possibly anticipate rare occasions where backwards-compatibility will break and to help detect regressions in Nightly. Also, the current CI script ignores failed Nightly builds. allow_failures:
- rust: nightly |
I see, I got confused by reading the linked docmatic issue. As far as I understand comments there, cleaning the cache for package itself works around this problem? If so, maybe worth trying to |
I think that would work, Travis worked when I flipped caching off in the yaml. This solution would be better. |
I'm game for trying |
the key seems to be removing the old cached lib from the build directory. |
i thought cargo would do that, but a simple |
That's weird, I'd indeed expect Cargo to handle that. |
Btw, I see you moved commands from |
it didn't work in either place, only when i added the |
Yeah, but I suppose the difference was in |
(I mean |
aha sorry about that |
is there anything outstanding on this? |
I think it would be good to clean up commit history (to avoid lots of small cleanup commits, and also avoid them showing from two different authors) but otherwise LGTM, leaving to @punkstarman for final review. |
i think a squash merge is a good idea |
LGTM too. Concerning clean up or no, I don't mind either way. I'll do a squash merge. @rustysec, I'll also tag and release to crates.io soon. @RReverser, for my personal continuous improvement, I'd be interested in understanding why cleanup is important to you. |
@punkstarman I believe clean, maintained commit history can serve a list of useful purposes while not being too hard to keep:
There might be more, but these are the ones I can name off the top of my head. |
feature toggle for backtrace
updated solution #91, simple feature toggle without any code modifications. i added a couple of test cases that show the error handling still works even with
--no-default-features --feature=legacy-support
enabled (all test cases are passing).