Cloudflare wizard overwrites `src/index.ts` and reports success without setting up Sentry
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
Línea de trabajo
Start in src/cloudflare/sdk-setup.ts at createSentryInitFile and in src/cloudflare/templates.ts at getCloudflareWorkerTemplateWithHandler, and trace how the wrangler main entry is resolved when the file is missing or already exists. Done means existing files are never overwritten, a missing main target gets a Sentry-enabled worker or a clear message, and the wizard does not print the success outro when Sentry was not set up. Ask in the issue thread which behavior the maintainers want for case B before changing it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Environment
@sentry/wizard master (b262ed0, 9.1.0 plus one commit), Cloudflare integration. Reproduced by running createSentryInitFile directly, not a full wizard run.
Steps to Reproduce
Case A, no main in the wrangler config:
- Have a
wrangler.jsoncwithoutmainand an existingsrc/index.ts. - Run
npx @sentry/wizard -i cloudflare.
Case B, main points to a missing file:
- Set
"main": "nope.ts"without creating that file. - Run
npx @sentry/wizard -i cloudflare.
Expected Result
- Existing files are never overwritten.
- A newly created worker is set up with Sentry.
- The wizard does not report success if Sentry was not set up.
Actual Result
- Case A:
src/index.tsis overwritten with a plain worker template that contains no Sentry code. - Case B: no file is created or changed, and no message is shown for it.
From reading the code, both cases continue to the "Sentry has been successfully configured for your Cloudflare project." outro, and case A also adds main: src/index.ts to the wrangler config.
See createSentryInitFile in src/cloudflare/sdk-setup.ts and getCloudflareWorkerTemplateWithHandler in src/cloudflare/templates.ts.
- Lenguaje dominante
- TypeScript
- Estrellas
- 297
- Forks
- 88
- Merge medio
- 5 h 29 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni 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 getsentry/sentry-wizard
-
bug Next.js
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
getsentry/sentry-wizard#1397 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/sentry-wizard#1396 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
React Router Framework
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
getsentry/sentry-wizard#1392 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
getsentry/sentry-wizard#1391 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Cocoa Improvement
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
getsentry/sentry-wizard#989 ·
Los mantenedores suelen responder en 1 día
Todos los issues de getsentry/sentry-wizard
Issues similares
-
generate_image reference URL guard lets through IPv4-mapped IPv6 hosts and 100.64.0.0/10Posiblemente ocupada @goranai la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
-
Inbox permission: an allow sent with `updatedInput` is ignored by Claude Code on its own safety checksPosiblemente ocupada @Raj1v la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
backnotprop/plannotator#4046 ·
Los mantenedores suelen responder en 1 día
-
進捗部屋の管理画面で削除対象を月ごとに絞り込むAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
traPtitech/knoQ_R-UI#290 ·
Los mantenedores suelen responder en 24 días
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
farion1231/cc-switch#9981 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
account bug course exam iris lecture
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día