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

Fix bin/static_lint error when running make lint #11262

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

divbzero
Copy link
Contributor

The bin/static_lint step of make lint was throwing an error:

+ export LC_ALL=en_US.UTF-8
+ LC_ALL=en_US.UTF-8
+ export LANG=en_US.UTF-8
+ LANG=en_US.UTF-8
+ ./node_modules/.bin/eslint 'warehouse/static/js/**' '**.js' 'tests/frontend/**' --ignore-pattern 'warehouse/static/js/vendor/**'
bin/static_lint: line 12: ./node_modules/.bin/eslint: No such file or directory
make: *** [lint] Error 1

Fixed by running bin/static_lint in the static Docker container.

The `bin/static_lint` step of `make lint` was throwing an error:

    + export LC_ALL=en_US.UTF-8
    + LC_ALL=en_US.UTF-8
    + export LANG=en_US.UTF-8
    + LANG=en_US.UTF-8
    + ./node_modules/.bin/eslint 'warehouse/static/js/**' '**.js' 'tests/frontend/**' --ignore-pattern 'warehouse/static/js/vendor/**'
    bin/static_lint: line 12: ./node_modules/.bin/eslint: No such file or directory
    make: *** [lint] Error 1

Fixed by running `bin/static_lint` in the `static` Docker container.
@divbzero divbzero added the developer experience Anything that improves the experience for Warehouse devs label Apr 26, 2022
Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

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

I've seen this a couple of times, but didn't bother to root cause. Thanks!

@di di merged commit 346fb5e into pypi:main Apr 27, 2022
@di
Copy link
Member

di commented Apr 27, 2022

Thanks!

domdfcoding pushed a commit to domdfcoding/warehouse that referenced this pull request Jun 7, 2022
The `bin/static_lint` step of `make lint` was throwing an error:

    + export LC_ALL=en_US.UTF-8
    + LC_ALL=en_US.UTF-8
    + export LANG=en_US.UTF-8
    + LANG=en_US.UTF-8
    + ./node_modules/.bin/eslint 'warehouse/static/js/**' '**.js' 'tests/frontend/**' --ignore-pattern 'warehouse/static/js/vendor/**'
    bin/static_lint: line 12: ./node_modules/.bin/eslint: No such file or directory
    make: *** [lint] Error 1

Fixed by running `bin/static_lint` in the `static` Docker container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer experience Anything that improves the experience for Warehouse devs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants