Generator: handle domain name collision with hand-impl module (e.g. services domain) #68
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_blueprint#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Discovered by the #261 agent while bootstrapping
hero_service. They choseservicesas the domain name (toy-domain = managing Hero services) and hit a collision because the generator emits aservicesmodule alongside the scaffolder's hand-implsrc/services/mod.rsplaceholder.The collision forced the agent to work around the naming. Future contributors picking the obvious domain name will hit the same wall.
What to do
Pick one:
src/services/to something less generic (e.g.src/_handlers/orsrc/business/).servicescollides with the placeholder; rename the domain or the placeholder") or auto-rename the placeholder.Needs a small spec comment first deciding which approach + naming.
Acceptance
services(or any other plausible name) produces a clean workspace without manual renames.Related
src/services/placeholder (subsumes #68) #75src/services/placeholder (subsumes #68) #75Resolved by #75 / branch
issue-75-remove-services-placeholder-v2(1c2993df4b) — the emptysrc/services/placeholder that was colliding with aservices-named domain has been removed entirely from both the scaffolder and the build.rs codegen.Verified by scaffolding a workspace with domain literally named
services(hero_svctest) and building it clean — no manual fix-up required. The onlypub mod services;in the resulting lib.rs is the feature-gated one for the domain itself; thesrc/services/directory is populated entirely by codegen, with no placeholder.Closing as resolved-by-this.