question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Better handle empty suffix

See original GitHub issue

I tried to bypass (😈) using a suffix for templates with _templates_suffix: "" in my copier.yml. Unfortunately it didn’t work as expected: only directories were rendered (see #185), and no file was copied/rendered at all, even files with no extension.

Not sure what the code is doing with the suffix, but surely an error/warning could be displayed if the suffix is empty.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pawamoycommented, Apr 23, 2021

Alright! Then I’ll try to send a PR with a fix 🙂

0reactions
yajocommented, Apr 23, 2021

Ah I see. Well, I think that the case of empty suffix, meaning that all files are templates, should be valid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Avoid prefix suffix for blank string in Collectors.joining
Now what I want is to avoid the prefix and suffix in case if blank String. So, any suggestion?
Read more >
Request: Add empty prefix/suffix as a search parameter #320
This is a more complex problem than just adding empty --- modifiers filter. Found 64 items for this query.
Read more >
Am I wrong or can we no longer search for open prefix/suffix ...
I know you can still search for #empty prefix or suffix, or even # used prefix or suffix, but this is ALOT worse...
Read more >
Create a User With a Empty Suffix in Windows AD - Server Fault
All users in AD have a UPN suffix whether you explicitly add it or not. When you create users via code, the userPrincipalName...
Read more >
Removing the prefix or suffix for a blank AD field
Set the Hide if blank property to true. If the field is blank in the AD, the prefix and suffix will not appear...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found