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

Don't download a new binary if one is already present. #87

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sbrow
Copy link

@sbrow sbrow commented Jan 27, 2025

As discussed in #84, if a user has not configured a binary version, but has already downloaded an outdated tailwind binary, the outdated version will be used instead of downloading a new version.

This prevents builds from breaking when users unexpectedly are upgraded from v3.x to v4.

I could add a message that warns users they are not using the most up-to-date version, if necessary.

@sadikoff
Copy link

Hey, nice work, can you please fix CS and tests

@sbrow
Copy link
Author

sbrow commented Jan 28, 2025

Yep, sorry about that.

Copy link
Member

@bocharsky-bw bocharsky-bw left a comment

Choose a reason for hiding this comment

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

src/TailwindBinary.php Outdated Show resolved Hide resolved
src/TailwindBinary.php Outdated Show resolved Hide resolved
@sbrow sbrow force-pushed the sbrow-patch-1 branch 2 times, most recently from bac7dc7 to 24c8321 Compare January 29, 2025 18:38
@bocharsky-bw
Copy link
Member

Thanks for more changes, I still think we need to tweak the docs as well: https://symfony.com/bundles/TailwindBundle/current/index.html#using-a-different-binary-version

To make it clear about the process of finding the binary, WDYT?

@sbrow
Copy link
Author

sbrow commented Jan 30, 2025

@bocharsky-bw My apologies. I did not realize that the docs were in the same repository as the plugin. I've done my best to explain the changes, but feel free to make edits as needed 😅

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.

3 participants