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

Adds additional condition to PathUtils#split_subpath to avoid undefined error method for 'start_with?' #742

Conversation

ddink
Copy link

@ddink ddink commented Mar 30, 2022

I've run into an undefined error method for 'start_with?' on line 60 of lib/sprockets/path_utils.rb. While running rspec I've received about 80 failures mentioning this error. I found that I could avoid the error with an additional condition that checks whether or not the subpath argument is present.

By no means am I sure this is the proper solution, but this is working for our application at the moment.

@ddink ddink force-pushed the fix/path_utils_split_subpath/undefined_method_error branch 3 times, most recently from 5b3ee3f to fb76fd0 Compare March 31, 2022 17:31
@ddink ddink force-pushed the fix/path_utils_split_subpath/undefined_method_error branch from fb76fd0 to dad2733 Compare March 31, 2022 17:37
@rafaelfranca
Copy link
Member

How is subpath nil? I don't see any place in the sprockets code that would cause that. Can you provide a way to reproduce the error?

@rafaelfranca
Copy link
Member

Closed by #684. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants