-
Notifications
You must be signed in to change notification settings - Fork 19
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
[DOCS] add a note that this bundle does not work with alpine #31
Comments
I had a similar issue, do you know if there is a way to install some packages on Alpine to make it compatible? |
If the usage is in a docker, maybe naive question, but is it not possible to add dart-sass to your build ? https://pkgs.alpinelinux.org/package/edge/testing/x86_64/dart-sass |
That's a test repo you link. There is no stable release yet. But as this is definitely not going to work for everyone, I think it's wise for the maintainers of this project to state that alpine is not supported. Until a real solution is available for everyone.. |
Here, they talk about an unofficial build of SDK I tried this build https://github.com/dart-musl/dart-sass/releases and it works successfully on alpine. /app/var/dart-sass # wget https://github.com/dart-musl/dart-sass/releases/downlo
ad/1.69.5/dart-sass-1.69.5-linux-arm64.tar.gz
tar -xvzf dart-sass-1.69.5-linux-arm64.tar.gz
/app/var/dart-sass # ./sass
Compile Sass to CSS. |
Ho so nice! Thanks for sharing! |
I'm not sure you should vouch for a non-official binary like that.. but just my 2 cents :) And if you do it for Alpine, will you too for ? For me you would better:
|
@smnandre I agree with you , relying it on unofficial binary can be a bit risky ;) I my case, I use https://github.com/dunglas/symfony-docker |
Hi @Yoann-TYT , I agree to add a documentation as I'm completely in the same position here. I've been working with Kevin's template and I can't make this bundle work... Could you please share how you manage it within your Dockerfile? Thanks ! |
I'm using |
It is because my script is for Mac. I wrote a custom shell to fetch the right binary https://gist.github.com/Yoann-TYT/560b85aa6af5f1c9530bc9c634b87d80 And I add it in my Dockerfile
Hope it will be useful for you @LaurentSanson @haivala :) |
ah, true. Why didn't I see that |
Thanks @Yoann-TYT , I'm gonna give it another try today 🎉 Hopefully this bundle will soon work with alpine ! |
It probably makes sense to add a note somewhere in the docs about Alpine and just point to this issue for now. Can someone make a PR? |
Things are moving on the Sass side : sass/dart-sass#2149 |
It is released: https://github.com/sass/dart-sass/releases/tag/1.69.6
|
If someone (using Alpine) can test this patch and say what is working / not that'd be great :) https://github.com/smnandre/sass-bundle/tree/feat/download-alpine-binary |
I'll give it a try tomorrow @smnandre 💪 |
Hello @smnandre , I'm trying to require the package, but it's not working, it's like the package doesn't exists. I've tried with yours and mine, same error
|
@LaurentSanson That's not how you request a fork. Add this to your composer.json. "repositories": [
{
"type": "vcs",
"url": "https://github.com/smnandre/sass-bundle"
}
], and change the version constraint for sass-bundle to |
Instead of |
@bocharsky-bw You are right, I'm sleepy. Need more tea before writing on the interweb. Thanks. @smnandre Works for me 👍 |
Awesome, thanks for double-checking! Then #51 is almost ready, we just need to fix related failed tests there |
Thanks guys, I've got the package locally now. And I really need to sleep too 😃 But it's still not working, same issue for me when trying to EDIT : After removing my var folder, I can confirm that it is working too 👍 |
This bundle is downloading dart-sass automatically which is perfectly ok when running on windows, macos, linux. Except for some distro's like alpine. Alpine is quite popular for people using docker because of the image size. But this comes with a different libc, which is not the version dart-sass is compiled with.
Their is no alternative download available with musl-libc. See sass/embedded-host-node#155
The text was updated successfully, but these errors were encountered: