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

Fails when running in CI #7

Closed
abel-cherinet-liqid opened this issue Dec 23, 2021 · 8 comments
Closed

Fails when running in CI #7

abel-cherinet-liqid opened this issue Dec 23, 2021 · 8 comments

Comments

@abel-cherinet-liqid
Copy link

abel-cherinet-liqid commented Dec 23, 2021

mix tailwind default --minify works ok locally but seems to fail in GCP Cloud Build where the reason doesn't seem to be obvious.

deploy.yml

  - name: 'gcr.io/something/docker-base-images/alpine-elixir-builder'
    id: 'run tailwind'
    entrypoint: mix
    args: [ 'tailwind', 'default', '--minify' ]

output

17:08:26.506 [debug] Downloading tailwind from https://github.com/tailwindlabs/tailwindcss/releases/download/v3.0.3/tailwindcss-linux-x64
** (Mix) `mix tailwind default --minify` exited with 2
@fertapric
Copy link

@abel-cherinet-liqid I run into the same issue and fixed it running apk add --no-cache gcompat. More info here.

Hope it helps! 🙂

@abel-cherinet-liqid
Copy link
Author

abel-cherinet-liqid commented Dec 27, 2021

Unfortunately not, also tried installing libc6-compat and still same error

@mveytsman
Copy link
Member

@abel-cherinet-liqid does adding the combination of build-base and gcompat work for you?

@mveytsman
Copy link
Member

This is going to keep coming up for alpine users - I opened a discussion to switch to static builds on tailwind's side here: tailwindlabs/tailwindcss#6785

@iautom8things
Copy link

@abel-cherinet-liqid does adding the combination of build-base and gcompat work for you?

Thanks for this discussion! I came across this issue and tried following the suggestions, but it seems to run at odds with similar/related issues with the dart-sass library+installer:

From this issue:
CargoSense/dart_sass#13

A PR was opened that includes the following notes with their fix:

Notes: The Alpine package gcompat vs libc6-compat will not work.

Is there a way that we can satisfy both dependencies in alpine to be able to run the dart-sass and tailwindcss installers?

@abel-cherinet-liqid
Copy link
Author

@fertapric @mveytsman sorry for late response, I figured later that adding gcompat worked! I was trying to install gcompat as a GCP Cloud Build step which didnt persist to the tailwind step. Now I installed gcompat in my docker file and seems to work fine this time. Thank you for the help!

@mveytsman
Copy link
Member

mveytsman commented Jan 7, 2022

I got a PR switching the build type to linuxstatic into tailwind (tailwindlabs/tailwindcss#6914)

this will actually fix the problem (and related issues on nixos)

Can we keep this issue open until a new version is released and we can set that as the default in this package?

@philipgiuliani
Copy link

This should be included in Tailwind CSS 3.0.12. So I guess this can be closed now ☺️

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

No branches or pull requests

6 participants