[Bug]: `fw fabric register .gitignore` writes `.fabric/components/.yaml` (the T-1659 empty slug, for root dotfiles)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 69/100
Línea de trabajo
Empieza en agents/fabric/lib/register.sh en la línea 199 y luego lee la comprobación de colisiones en las líneas 201-217. Reprodúcelo con fw fabric register .gitignore en un proyecto recién creado con fw init y comprueba .fabric/components/; verifica que los archivos dot de la raíz reciban slugs distintos y no vacíos, incluido .framework.yaml frente a framework.yaml.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
agents/fabric/lib/register.sh:199 builds the slug with:
slug=$(echo "$rel_path" | sed 's|/|-|g; s|\.[^./-]*$||; s|^\.||')
For a root dotfile with no other dot, the "trailing extension" is the whole name: .gitignore gives an empty slug, so the card is .fabric/components/.yaml. The comment just above (T-1659, bug 2) names this exact file as the bug being fixed; the fix covers paths with a dot before the basename, not a basename that starts with a dot.
Same line, two more effects:
- A second such dotfile (
.dockerignore,.editorconfig,.env) also gets the empty slug; the collision guard (lines 201-217) then names it-dockerignore.yaml, so card names depend on registration order. .framework.yamlgivesframework(extension stripped, then leading dot stripped), the slug of a realframework.yaml.
Steps to Reproduce
- In a fresh
fw initproject:touch .gitignore && fw fabric register .gitignore ls -A .fabric/components/: the card is named.yaml.
Expected Behavior
A non-empty slug that keeps the name, e.g. gitignore.yaml (or dot-gitignore.yaml), and distinct slugs for .framework.yaml and framework.yaml.
Actual Behavior
.fabric/components/.yaml, a hidden file that ls does not show by default.
fw doctor output
AI Agent
Claude Code
Operating System
Linux
Additional Context
Seen on 1.8.14 in a real project, reproduced on 1.8.15 in a throwaway container (fresh fw init project, non-root, no network). register.sh is unchanged on bleeding-edge (0c3b8b6c3).
- Lenguaje dominante
- Shell
- Estrellas
- 16
- Forks
- 6
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DimitriGeelen/agentic-engineering-framework
-
area:context bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DimitriGeelen/agentic-engineering-framework#113 · 2 comentarios ·
-
area:watchtower bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DimitriGeelen/agentic-engineering-framework#110 · 2 comentarios ·
-
area:fabric bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
DimitriGeelen/agentic-engineering-framework#108 · 2 comentarios ·
-
area:tasks bug severity:high status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DimitriGeelen/agentic-engineering-framework#107 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Todos los issues de DimitriGeelen/agentic-engineering-framework
Issues similares
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 61/100
JWhite212/SignalLadder#215 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
richardcase/skills#29 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openziti/helm-charts#427 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Eyevinn/php-runner#24 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día