Skip to content

fix(containers): allow aliases for simple names#1327

Merged
TristonianJones merged 1 commit into
cel-expr:masterfrom
rohan-patnaik:fix-simple-alias-targets
Jun 4, 2026
Merged

fix(containers): allow aliases for simple names#1327
TristonianJones merged 1 commit into
cel-expr:masterfrom
rohan-patnaik:fix-simple-alias-targets

Conversation

@rohan-patnaik

Copy link
Copy Markdown
Contributor

Fixes #1306

Summary

This allows containers.Alias to point at a simple name, not only a dotted qualified name.

Why

Before this change, Alias("really_long_package_name", "short") failed validation even though explicit aliases should be able to abbreviate a name without a field selection. Abbrevs still requires a dotted qualified name, so the stricter abbreviation behavior is preserved.

Test plan

  • go test ./common/containers
  • go test ./common/containers ./cel ./checker ./interpreter

@TristonianJones

Copy link
Copy Markdown
Collaborator

/gcbrun

@TristonianJones TristonianJones left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jnthntatum and @l46kok we should probably make a similar change for C++ and Java alias support since it's a different use case from abbreviations.

@l46kok

l46kok commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

This change is already present in Java

@TristonianJones
TristonianJones merged commit 22f1b2c into cel-expr:master Jun 4, 2026
7 checks passed
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

Successfully merging this pull request may close these issues.

Allow aliases to support names without field selections

3 participants