-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix: linter warnings #324
base: master
Are you sure you want to change the base?
fix: linter warnings #324
Conversation
@@ -10,6 +10,6 @@ ENV RUSTUP_HOME=/rust | |||
ENV CARGO_HOME=/cargo | |||
ENV PATH=/cargo/bin:/rust/bin:$PATH | |||
|
|||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path | |||
RUN (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly --no-modify-path) && rustup default nightly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nightly is really required here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like feature(doc_cfg)
is only available in nightly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error[E0554]: `#![feature]` may not be used on the stable release channel
--> src/lib.rs:6:18
|
6 | #![cfg_attr(doc, feature(doc_cfg))]
| ^^^^^^^^^^^^^^^^
error: aborting due to 1 previous error
@ptondereau any idea what could be a plan to move on with this? |
Hey, thank you for your patience, I'm not the lead maintainer for now and as I don't work with PHP, I try my best to answer question 😅 |
@ptondereau that's exactly what this PR does: only use nightly 😉 |
Some of this is also solved in #320 as I needed to make clippy happy. |
@jdrouet ye, just wanted to make sure you've seen it. tbh i don't know what to change to get it merged. Did the bare minimum to get ci woking again. |
Agreed. I don't know if this repository will move forward at anytime soon. |
If it doesn't Ill probably create my own repo. No hard feelings towards the maintainers. Just want to move forward. |
I'm happy to move this repo out into an organization - will do this later this week, but if you think there should be more approvers/maintainers please reach out to me! #140 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but do you know why CI is failing on this PR? Will merge after it passes
Regarding CI:
|
I think on common issue could be the use of unstable features. Removing those would fix some CI issues. |
54be466
to
f965ea4
Compare
@jdrouet I rebased your branch on |
Current CI failures are caused by #331 |
…ests Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
@jdrouet rebased with working |
Without looking further into this and correct me if I am wrong: Merging this would mean we loose stable support. Would like to avoid that. Guess same point as #324 (comment) made. |
@Xenira the problem is that this crate has many dependencies on nightly features. This introduces some errors at build time and makes it harded to reproduce the build. It can also be unstable over time considering the nightly features are, by definition, not sure to remain the same or land in stable. I'd suggest to remove them to only rely on stable features. I can do it if you agree with that. |
@jdrouet maybe I don't understand the problem, but what exactly is not working with stable right now.
|
When compiling the linter complained that
php8x
was not defined. I fixed it usingrustc-check-cfg
as defined here.The compiler also complained that
cfg(docs)
was invalid. It's because it should becfg(doc)
. I updated that. After updating, the compiler mentioned thatfeature(doc_cfg)
was only available in nightly so I update the embed Dockerfile to reflect that.