[GH-ISSUE #571] cargo install fails to compile on Debian/rustc 1.81.0 #330

Closed
opened 2026-03-02 23:46:36 +03:00 by kerem · 3 comments
Owner

Originally created by @ShuraShulgin on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/571

Describe the bug
error[E0308]: match arms have incompatible types appears if I try to install with cargo install spotify_player.

To Reproduce

  1. Install fresh Debian 12 (bookworm) in WSL
  2. Install Rust & dependencies like it has been described in the README
    Expected behaviour
    A successful installation

Log and backtrace
image

Environment

  • OS: Debian 12 (bookworm) in WSL2
  • Application version: well whatever cargo tries to install
  • Application features: command: cargo install spotify_player

Additional context
I've had this working on my home machine and my work pc so I'm quite confused what is happening, I'm running the same script as I did on those machines, all the same setup (Debian 12 in WSL). Script is basically download neovim, download tmux, download rust, install dependencies, install spotify_player. If needed I can create a reduced version of the script just concerning the spotify_player part but that would take a second to extract all that.

Originally created by @ShuraShulgin on GitHub (Oct 9, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/571 **Describe the bug** error[E0308]: `match` arms have incompatible types appears if I try to install with cargo install spotify_player. **To Reproduce** 1. Install fresh Debian 12 (bookworm) in WSL 2. Install Rust & dependencies like it has been described in the README **Expected behaviour** A successful installation **Log and backtrace** ![image](https://github.com/user-attachments/assets/9e9811c4-2c8b-4d56-b236-1cc5b13bfb0f) **Environment** - OS: Debian 12 (bookworm) in WSL2 - Application version: well whatever cargo tries to install - Application features: command: cargo install spotify_player **Additional context** I've had this working on my home machine and my work pc so I'm quite confused what is happening, I'm running the same script as I did on those machines, all the same setup (Debian 12 in WSL). Script is basically download neovim, download tmux, download rust, install dependencies, install spotify_player. If needed I can create a reduced version of the script just concerning the spotify_player part but that would take a second to extract all that.
kerem 2026-03-02 23:46:36 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ShuraShulgin commented on GitHub (Oct 9, 2024):

I think it's WSL's problem. Install it within your Windows environment, not WSL

That would defeat the usecase in my circumstance, so no. Also I have 2 different WSL instances on other machines were this works(as stated above) so it cannot be solely WSLs fault.
I'll try different feature flags and report back if something works.

<!-- gh-comment-id:2402115836 --> @ShuraShulgin commented on GitHub (Oct 9, 2024): > I think it's WSL's problem. Install it within your Windows environment, not WSL That would defeat the usecase in my circumstance, so no. Also I have 2 different WSL instances on other machines were this works(as stated above) so it cannot be solely WSLs fault. I'll try different feature flags and report back if something works.
Author
Owner

@aome510 commented on GitHub (Oct 9, 2024):

Similar to https://github.com/aome510/spotify-player/issues/560. See the discussion on how to resolve

<!-- gh-comment-id:2402170540 --> @aome510 commented on GitHub (Oct 9, 2024): Similar to https://github.com/aome510/spotify-player/issues/560. See the discussion on how to resolve
Author
Owner

@ShuraShulgin commented on GitHub (Oct 9, 2024):

Similar to #560. See the discussion on how to resolve

Thank you very much, this worked.

<!-- gh-comment-id:2402207670 --> @ShuraShulgin commented on GitHub (Oct 9, 2024): > Similar to #560. See the discussion on how to resolve Thank you very much, this worked.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#330
No description provided.