Skip to content
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

Remove dataframes crate and feature #12889

Merged
merged 13 commits into from
May 20, 2024

Conversation

IanManske
Copy link
Member

Description

Removes the old nu-cmd-dataframe crate in favor of the polars plugin. As such, this PR also removes the dataframe feature, related CI, and full releases of nushell.

@IanManske IanManske added pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes removal-after-deprecation The component has already been sunset with `deprecation` and is now up for final removal pr:release-note-mention Addition/Improvement to be mentioned in the release notes labels May 17, 2024
@fdncred
Copy link
Collaborator

fdncred commented May 17, 2024

Great work on this PR. My main concern is that it will break winget, not due to the rust changes but due to the ci and script changes. That's what all my comments are about.

I started making comments but instead of going through the changes, unrelated to rust code and specific to winget, we need to have the rust flags in order for winget to work. I couldn't remember which flags need to be maintained so I went to lookup the issues which have them and describe why they're needed. Please restore these if/where they're missing.

#9513
#9322 (comment)

@IanManske
Copy link
Member Author

IanManske commented May 17, 2024

Oh ok, I see the issue with the RUSTFLAGS. However, setting with: rustflags: "" in CI means that the RUSTFLAGS="-D warnings" set by the setup-rust-toolchain action is overwritten. I believe this means that warnings will be ignored (e.g., unused imports like here). For building releases I think it makes sense to restore the old flags.

@fdncred
Copy link
Collaborator

fdncred commented May 17, 2024

Oh ok, I see the issue with the RUSTFLAGS. However, setting with: rustflags: "" in CI means that the RUSTFLAGS="-D warnings" set by the setup-rust-toolchain action is overwritten. I believe this means that warnings will be ignored (e.g., unused imports like here). For building releases I think it makes sense to restore the old flags.

Hopefully winget will pass with these changes. Otherwise, I'll be pinging you to reverse the ci changes.

@IanManske
Copy link
Member Author

Actually what I have right now won't work because of #12900. I'll restore the old flag code for the release workflows @fdncred.

@fdncred
Copy link
Collaborator

fdncred commented May 18, 2024

I think you're one the right track with removing full, I was just worried about the rust flags parts.

@IanManske
Copy link
Member Author

I was just worried about the rust flags parts.

With good reason XD

The target_rustflags and flags were for feature flags (e.g., --features=dataframes), so I kept those removed. ($env.TARGET_RUSTFLAGS is not used/recognized by cargo.)

I also kept the rustflags/RUSTFLAGS as removed in the CI for the reason mentioned before.

Otherwise, feel free to double check that the release workflows have the same rustflags/RUSTFLAGS as before.

@IanManske IanManske marked this pull request as ready for review May 18, 2024 15:19
@fdncred
Copy link
Collaborator

fdncred commented May 18, 2024

It's pretty clear that all the workflows are different. Only time will tell as to whether winget-pkgs will accept our next release.

Copy link
Member

@sholderbach sholderbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I can see by looking at the workflows etc. looks all plausible to me

@@ -4,7 +4,7 @@ description = "Nushell dataframe plugin commands based on polars."
edition = "2021"
license = "MIT"
name = "nu_plugin_polars"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu-cmd-dataframe"
repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_polars"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@fdncred
Copy link
Collaborator

fdncred commented May 20, 2024

if we're going to land this, we should do it soon enough to be able to use it a bit before the release.

@IanManske IanManske merged commit 905e3d0 into nushell:main May 20, 2024
14 checks passed
@hustcer hustcer added this to the v0.94.0 milestone May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:breaking-change This PR implies a change affecting users and has to be noted in the release notes pr:release-note-mention Addition/Improvement to be mentioned in the release notes removal-after-deprecation The component has already been sunset with `deprecation` and is now up for final removal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants