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

fix: do not unpack downloaded tailwindcss extra on macos or windows #954

Merged

Conversation

chriamue
Copy link
Contributor

@chriamue chriamue commented Mar 1, 2025

Fix for this issue: #953

On mac, tailwindcss-extra is downloaded, but the release is not a targz.

Tested on Mac.
Not tested on Windows,
the .exe file extension for release suggest, that it is not a targz too.

Using (cfg!(target_os = "macos") || cfg!(target_os = "windows"))
seems a little bit hacky, feel free to change or comment.

@chriamue
Copy link
Contributor Author

chriamue commented Mar 4, 2025

Linter made me to combine identical if blocks:

} else if app == Application::TailwindCss
      || (app == Application::TailwindCssExtra
          && (cfg!(target_os = "macos") || cfg!(target_os = "windows")))
{

Now harder to read and understand.
Anyone has any better idea?

@ctron ctron added this pull request to the merge queue Mar 4, 2025
Merged via the queue into trunk-rs:main with commit d9df349 Mar 4, 2025
60 checks passed
@ctron
Copy link
Collaborator

ctron commented Mar 4, 2025

released as 0.21.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants