-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove the confusing .
in the template tests
#8392
Conversation
dfb013d
to
90c5272
Compare
I think this was added to actually test something. are we fine removing it @Eilon ? |
Hmm I'm not sure what exactly this part of the test is doing (it looks quite different from last time I changed it). But, @rmarinho might be onto something: a long, loooooong time ago I updated the test to use "weird" characters to make sure that when the template was created, that the "weird" characters were correctly substituted in the template. For example, if you do |
Oops clicked wrong button somehow. Re-opened. |
????????? Apparently Ctrl+Enter closes PRs?? That must be new... |
@mattleibow what does this fix btw? |
Nothing technically, but the build logs are weird to read with a dot in the filename and package names. |
This is not the templates, the is just the ci part of the tests. This does not change customer code but just our test on ci |
@mattleibow can you confirm that the template test still tries to create templates that have dots in the name? I think that's what the test was doing, but I'm not familiar with what this change affects. |
The test does not do that because it never did. I added an extra thing last week and wanted to make it cleaner. This test before was to create a project using different TFMs I I had forgotten to remove the dot from net6.0. But you raise an important Q, what are some dodgy combos that we should be testing in our test. Like starting with numbers or have weird characters. Is it possible to open an issue on that so I can add a test for those cases? |
Looks like we never had dots, but at one point I added dashes and spaces: https://github.com/dotnet/maui/pull/2368/files#diff-f987df2e4d48c04c42bb417e36d0d8b1fa9ddd29f10459c98f16d7b9b10f47c5R112 I think as long as a few oddities are used, that covers just about everything, because there are only a few substitution variables allowed depending on whether it's a type name, filename, etc. |
Description of Change
Just making life a bit easier without weird dots making the build look like something went wrong.