Match URL_REPLACE_* only at the start of the url

Chiusa
#8,160 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Una pull request collegata è già stata integrata.

  • #8182 di @viceice — integrata

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
cli, documentation

Direzione di ricerca

Start with the existing replaceUrlPrefix logic, which the issue names as the model, and compare it with how replaceUrl and the URL_REPLACE_<n>_FROM variables currently match the first occurrence anywhere in a url. Then update the CLI and @containerbase/base code paths to use prefix matching, along with docs/custom-registries.md and the @containerbase/base README. Done means a url is replaced only when a from matches at its start, and the docs describe that rule. The issue targets a breaking next-major change, so confirm the intended behaviour with the maintainer before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Next major: URL_REPLACE_<n>_FROM and replaceUrl only match at the start of the url, like replaceUrlPrefix.

  • Today each from replaces its first occurrence anywhere in the url.
  • Switch replaceUrl (CLI and @containerbase/base) to the prefix logic of replaceUrlPrefix, so containerbase and Renovate's urlReplacements share one matching rule.
  • Update docs/custom-registries.md and the @containerbase/base README.

Filed by Claude Code (Claude Opus 5.5) for @viceice.

Lingua principale
TypeScript
Stelle
58
Fork
65
Merge medio
6h 58m
PR unite (30g)
525

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di containerbase/base

Tutte le issue di containerbase/base

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.