ext-php-rs icon indicating copy to clipboard operation
ext-php-rs copied to clipboard

fix: linter warnings

Open jdrouet opened this issue 1 year ago • 17 comments

When compiling the linter complained that php8x was not defined. I fixed it using rustc-check-cfg as defined here.

The compiler also complained that cfg(docs) was invalid. It's because it should be cfg(doc). I updated that. After updating, the compiler mentioned that feature(doc_cfg) was only available in nightly so I update the embed Dockerfile to reflect that.

jdrouet avatar Sep 19 '24 06:09 jdrouet

@ptondereau any idea what could be a plan to move on with this?

jdrouet avatar Sep 30 '24 08:09 jdrouet

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 😅 the CI seems broken here but anyway, for the Dockerfile, is there a way to rely on nightly only for the doc problem? Because, it executes the test as well with nightly. cc @danog

ptondereau avatar Sep 30 '24 09:09 ptondereau

@ptondereau that's exactly what this PR does: only use nightly 😉

jdrouet avatar Oct 01 '24 17:10 jdrouet

Some of this is also solved in #320 as I needed to make clippy happy.

Xenira avatar Oct 07 '24 12:10 Xenira

@Xenira yeah, but considering @danog didn't seem to approve your changes, I went for a smaller change so that we can iterate.

jdrouet avatar Oct 07 '24 13:10 jdrouet

@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.

Xenira avatar Oct 07 '24 13:10 Xenira

Agreed. I don't know if this repository will move forward at anytime soon. Maybe @danog or @davidcole1340 would consider moving this repository to an org with more people that could contribute?

jdrouet avatar Oct 09 '24 14:10 jdrouet

If it doesn't Ill probably create my own repo. Have a bunch of changes locally that I would like to contribute, but am blocked by CI and can't wait 2 months on each of those.

No hard feelings towards the maintainers. Just want to move forward.

Xenira avatar Oct 09 '24 21:10 Xenira

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! https://github.com/davidcole1340/ext-php-rs/issues/140

davidcole1340 avatar Oct 10 '24 01:10 davidcole1340

Regarding CI:

  1. Stable and unstable are tested in CI. These changes only work on unstable (https://github.com/davidcole1340/ext-php-rs/actions/runs/10935703203/job/30365113910?pr=324#step:12:256)
  2. Macos will also fail because of clang/llvm (#320)

Xenira avatar Oct 10 '24 12:10 Xenira

I think on common issue could be the use of unstable features. Removing those would fix some CI issues.

jdrouet avatar Oct 10 '24 13:10 jdrouet

@jdrouet I rebased your branch on master, please review that the logic is still correct

davidcole1340 avatar Oct 20 '24 22:10 davidcole1340

Current CI failures are caused by #331

Xenira avatar Oct 21 '24 17:10 Xenira

@jdrouet rebased with working master pipeline

Xenira avatar Oct 21 '24 22:10 Xenira

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 https://github.com/davidcole1340/ext-php-rs/pull/324#discussion_r1766474253 made.

Xenira avatar Oct 21 '24 22:10 Xenira

@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 avatar Oct 22 '24 08:10 jdrouet

@jdrouet maybe I don't understand the problem, but what exactly is not working with stable right now.

master is building just fine using the stable channel.

Xenira avatar Oct 22 '24 15:10 Xenira