Closed erodewald closed 2 years ago
Hi @erodewald! Thanks for reaching out.
This is a side effect of how we generate our aliases. The expected uppersnakecase
alias of servicename-enable-aws-sdk-v2-for-account-create
is generated as SERVICENAME_ENABLE_AWS_SDK_V_2_FOR_ACCOUNT_CREATE
, and not SERVICENAME_ENABLE_AWS_SDK_V2_FOR_ACCOUNT_CREATE
as you expected. Note the extra _
between V
and 2
.
Sorry for this confusion, I can see how that is unexpected behavior. I've filed a bug on our side to track how we can improve this. A workaround for this could be to rename your flag, or add a literal alias:
- type: literal
flags:
servicename-enable-aws-sdk-v2-for-account-create:
- SERVICENAME_ENABLE_AWS_SDK_V2_FOR_ACCOUNT_CREATE
Feel free to re-open this issue if you have any more questions or feedback that I can take back to our team! Carmen
Thanks @carmenquan that got me moving again. :)
Trying my best to avoid using Issues as a support forum, but I have completely hit a wall on practical usage of this feature.
Let me start with a problem statement: Using either the cli or the GitHub Action implementing this CLI, I can't get my aliases to find any references besides the original string definition.
Command as executed from CLI:
Key in LaunchDarkly:
.launchdarkly/coderefs.yaml
:Project structure:
Example class which does find the reference:
Another class, which does not find get picked up by any of the aliases:
I would expect to catch this, as it matches
uppersnakecase
(although, for the record, I prefer "screaming snakecase").The only glimmer of hope I've gotten is that I do get additional references popping up when I set:
delimiters.disableDefaults: true
. I suspect this might be the "nuclear option" that you'll advise against using, so I'm looking for some guidance on whether or not I'm misusing this correctly.Thanks for any help you can provide.