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

Prettier Dockerfile - unsatisfiable constraints #34

Open
brianlow opened this issue Oct 24, 2019 · 1 comment
Open

Prettier Dockerfile - unsatisfiable constraints #34

brianlow opened this issue Oct 24, 2019 · 1 comment

Comments

@brianlow
Copy link

Error when using tag 1.0.7

ERROR: unsatisfiable constraints:
  bash-5.0.0-r0:
    breaks: world[bash~4]

Full log

$ docker build . -t github-action-prettier
Sending build context to Docker daemon   2.56kB
Step 1/13 : FROM node:alpine
 ---> 4eb3543f9812
Step 2/13 : LABEL "com.github.actions.name"="prettier"
 ---> Running in 023a3f8276ab
Removing intermediate container 023a3f8276ab
 ---> f51e78d1455c
Step 3/13 : LABEL "com.github.actions.description"="An opinionated code formatter, Supports many languages, Has few options"
 ---> Running in cc0599987dc4
Removing intermediate container cc0599987dc4
 ---> 439b5be3eeae
Step 4/13 : LABEL "com.github.actions.icon"="user-check"
 ---> Running in d52ccf28b6a6
Removing intermediate container d52ccf28b6a6
 ---> 3ac57da7b055
Step 5/13 : LABEL "com.github.actions.color"="purple"
 ---> Running in a18c37f6cfc5
Removing intermediate container a18c37f6cfc5
 ---> a38f2678a129
Step 6/13 : LABEL "repository"="http://github.com/bltavares/actions"
 ---> Running in 600d79b331f4
Removing intermediate container 600d79b331f4
 ---> 5afdb7dedda8
Step 7/13 : LABEL "homepage"="http://github.com/bltavares/actions"
 ---> Running in 151de0024859
Removing intermediate container 151de0024859
 ---> bf798cb28915
Step 8/13 : LABEL "maintainer"="Bruno Tavares <[email protected]>"
 ---> Running in 2eb3de26ec71
Removing intermediate container 2eb3de26ec71
 ---> e736cc6ed172
Step 9/13 : RUN npm install -g [email protected]
 ---> Running in 5dce2af44e5c
/usr/local/bin/prettier -> /usr/local/lib/node_modules/prettier/bin-prettier.js
+ [email protected]
added 1 package from 1 contributor in 0.663s
Removing intermediate container 5dce2af44e5c
 ---> 378e65f2cef5
Step 10/13 : RUN apk --no-cache add   curl~=7   jq~=1.6   bash~=4   git~=2
 ---> Running in f841e94b9286
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
  bash-5.0.0-r0:
    breaks: world[bash~4]
The command '/bin/sh -c apk --no-cache add   curl~=7   jq~=1.6   bash~=4   git~=2' returned a non-zero code: 1

m59peacemaker added a commit to m59peacemaker/actions that referenced this issue Dec 7, 2019
@KevOrr
Copy link

KevOrr commented Jun 27, 2020

Similar error with the tslint image. See ed94782. One possible fix would be to pin the alpine image tag, or lose the version constraints altogether, which is recommended by alpine.

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

2 participants