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

Aliases should ensure they don't duplicate a canonical name or other alias #715

Open
eeverman opened this issue Jan 16, 2022 · 0 comments
Open
Milestone

Comments

@eeverman
Copy link
Owner

eeverman commented Jan 16, 2022

The current rules for org.yarnandtail.andhow.api.Name aliases prevent names from starting or ending with a '.', however, they could otherwise contain a dot and thus look like a canonical name.

It seems like 'out' names should have almost no rules - perhaps the need is to create a particular report.
Runtime alias 'in' collisions should be detected and runtime exception stopped.

Options:

  • The rules for 'in' names might just ban dots completely. This might be a problem for some cross compatibility w/ legacy systems, but it would ensure aliases don't accidentally collide.
  • In the interest of allowing legacy compatability w/ config that might already contain dots, allow it, detect collisions at runtime, and add some docs advising against new apps using dots.

Certainly an alias should not duplicate a canonical name and this should be detected as early as possible.

@eeverman eeverman added this to the 0.5.1 milestone Jan 16, 2022
@eeverman eeverman modified the milestones: 1.5.1, Next Next Dot Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant