Skip to content

Update railtie to ignore no-extension files #327

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

Merged
merged 1 commit into from
Feb 18, 2016

Conversation

baweaver
Copy link
Contributor

Updated the railtie to ignore files with no extensions, such as LICENSE, that cause sprockets to error out on assets compilation.

Updated the railtie to ignore files with no extensions, such as LICENSE, that cause sprockets to error out on assets compilation.
@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @rafaelfranca (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@baweaver
Copy link
Contributor Author

@rafaelfranca
Copy link
Member

Why do you have a file like LICENCE in the app/assets folder?

@rafaelfranca
Copy link
Member

If it is because you are putting a vendor project inside app/assets you should move to vendor/assets and looking your last comment in the linked issue it is what is happening.

@baweaver
Copy link
Contributor Author

Bower-rails seems to have a nasty habit of doing that. That being said, it's a concern of both components as breaking on a file with no-extension feels like a bug that should be addressed regardless.

@matthewd matthewd reopened this Feb 18, 2016
@matthewd
Copy link
Member

@rafaelfranca we're not the filename-police... if our code is going to barf on an extensionless file, it seems the least we can do is ignore it

@rafaelfranca
Copy link
Member

@matthewd yeah, agree. Thank you for double checking. BTW, this behavior is soft deprecated already and you should migrate to use the manifest file.

rafaelfranca added a commit that referenced this pull request Feb 18, 2016
Update railtie to ignore no-extension files
@rafaelfranca rafaelfranca merged commit 567f15e into rails:master Feb 18, 2016
eins78 added a commit to eins78/sprockets-rails that referenced this pull request May 29, 2019
In previous versions it was possible to set (instead of extend) the `precompile` array.
This was broken, seemingly by accident, in rails@af64798

fixes rails#218
fixes rails#327
fixes rails#390
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

Successfully merging this pull request may close these issues.

4 participants