-
Notifications
You must be signed in to change notification settings - Fork 38
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
[DX] Exclude .tests.info files from requiring a "type =" line. #1294
Comments
Rather than ignoring test directories, I'd recommend just stopping at the first .info file found, as suggested in backdrop-contrib/honeypot#6 (comment). It will accomplish the same thing in hopefully a slightly more robust approach. |
Oh, that other issue is in Honeypot's queue, not core. Reopening to fix this here. |
I'm still having the issue honeypot. Manually install via cmd/file manager works tho. it's also happening with mimemail, civicrm, and a few others. I'm just testing config modules for now. I'm not even at the point of dropping tables and re-importing a db-copy from the d7 production site yet. |
The files that are causing problems are the ones named |
I'm unable to reproduce this problem on backdrop 1.7.0 or above. Can someone confirm that it's still an issue? |
I can't reproduce either using honeypot. |
This has now become an issue with #3105 which we are aiming to get in for the upcoming 1.11 |
I added a PR to exclude .tests.info in the Updater class backdrop/backdrop#2491. The function was already smart enough to first try to fetch the .info that matches the directory name, and, if that didn't work, it would take the first .info file in the list. That seemed to exclude tests.info in my testing, but this PR will make sure. I haven't been able to recreate the issue so perhaps someone else can test. |
I've merged backdrop/backdrop#2491 into 1.x and 1.12.x. Thanks for the fix @herbdool and review from @opi! |
Follow-up: #3821 |
These are not modules or themes or layouts. The "right" way to do it would be to perhaps require a
type = test
line, but I say we make this optional and instead rely on the fact that these live within/test
subdirectories.This came up in backdrop-contrib/honeypot#6 and elsewhere where modules would not be installed because we check and validate .info files in every subdir inside a project. Lets ease DX and improve UX.
Steps to reproduce:
1)
2)
3)
Backdrop version 1.2.2
PR: backdrop/backdrop#2491
The text was updated successfully, but these errors were encountered: