-
Notifications
You must be signed in to change notification settings - Fork 11
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
Handle globs in pkg.files #17
Comments
It looks the error occurs in the part of the process where we convert all line endings to unix. Is it actually necessary to do this? It seems like it would be better to just use the |
We added conversion process due to the fact that |
I think Regardless of what git does, if we enable |
Sorry, you are right, it does work on checkout, but because builds generate files from time to time, .gitattributes do not apply to them. ESLint build generates couple of json files, and on my first release I was doing in on Windows, they were generated with Windows line endings, which broke ESLint for anyone running on OSX/Linux. |
|
I honestly remember that incident pretty vaguely. It's been a very long time ago (version 0.22.0). All I remember is that my local git installation was setup to keep lind-endings as is (not to change them to Unix), and it cause OSX/Linux to throw errors on that version of ESLint. Here's original issue: eslint/eslint#2641 |
Oh, I know the issue -- based on eslint/eslint#2641 (comment), it looks like it was the shebang in Since |
This enables linebreak-style on the ESLint codebase. As a result, it should no longer be necessary to convert linebreaks as part of the release process. Refs: eslint/eslint-release#17
During the "Fixing line endings" step, eslint-release expects only exact file paths in
pkg.files
, not globs. Because of this, includinglib/*.js
inpkg.files
causes eslint-release to throw an exception (included below) during the release process.The other @eslint projects use
lib
andindex.js
, for example, but eslint-plugin-markdown includes a.eslintrc.yml
file in thelib/
directory, which we don't want to include in the build.Discovered in eslint/markdown#67 due to a failed Jenkins build:
The text was updated successfully, but these errors were encountered: