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

Pip install yamllint failing during Docker build #40

Open
fenech opened this issue Jul 17, 2023 · 1 comment
Open

Pip install yamllint failing during Docker build #40

fenech opened this issue Jul 17, 2023 · 1 comment

Comments

@fenech
Copy link

fenech commented Jul 17, 2023

I've noticed that the Docker build of this action is failing:

Collecting yamllint>=1.25.0
  Downloading yamllint-1.32.0-py3-none-any.whl (65 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.4/65.4 kB 4.4 MB/s eta 0:00:00
Collecting pathspec>=0.5.3 (from yamllint>=1.25.0)
  Downloading pathspec-0.11.1-py3-none-any.whl (29 kB)
Collecting pyyaml (from yamllint>=1.25.0)
  Downloading PyYAML-6.0.tar.gz (124 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 125.0/125.0 kB 9.2 MB/s eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1

However, it is also possible to install yamllint directly from Alpine packages (current version: 1.31.0-r0), which would shorten the RUN line to just:

RUN apk add --no-cache bash yamllint

This fixes the build. I'd be happy to open a PR if you like.

@denis-tingaikin
Copy link

@ibiqlik Could you have a look?

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