flisk project demo leaves the fresh clone dirty: DEMO_GUIDE.md deleted, README and install-deps.sh rewritten, 'Premium resources unlocked (12 files)'

Aperta
#147 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
git, node.js, typescript
Ambito
cli, testing, tooling

Direzione di ricerca

Start at the flisk project demo command and trace how it clones a template and applies premium resources; inspect the generated README and install-deps.sh changes described in the report. Run the command in a fresh directory and check git status --short and git diff --stat. Done means template clones have clean working trees or one visible overlay commit, accurate change counts, and no dangling README links.

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

Descrizione

area: cli bug docs-mismatch dogfood dx first-run has-repro help wanted needs-test priority:medium starter-templates tech: typescript triaged

Summary

flisk project demo clones the starter and prints "✓ Premium resources unlocked (12 files)". Right after, before any user action, git status is not clean: 1 tracked file deleted and 2 rewritten. The README of the clone then points to the deleted file's section, and the starter's own upstream remote will conflict on the next pull.

Before (measured, flisk 1.4.73, fresh empty dir)

$ flisk project demo
Destination: /private/tmp/dfu.ZpVF/flisk-restaurant-example
✓ Premium resources unlocked (12 files)
✅ Cloned "demo" into flisk-restaurant-example/
$ cd flisk-restaurant-example && git status --short
 D DEMO_GUIDE.md
 M README.md
 M shared-platform-engineering/docker-templates/install-deps.sh
$ git diff --stat
 DEMO_GUIDE.md                                  | 115 -----
 README.md                                      |   3 -
 .../docker-templates/install-deps.sh           |  68 ++++++++--
 3 files changed, 59 insertions(+), 127 deletions(-)
  • 0 of 3 changes were made by the user.
  • README: the tree line, the "Open DEMO_GUIDE.md ... three-minute walkthrough" sentence and the footer "Demo Guide" link are removed, leaving an empty "## Demo Walkthrough" section and a doubled  /  separator in the footer.
  • install-deps.sh: comments and a retry loop rewritten (68 lines changed) in a file that ships inside the image-build templates.
  • The git log shows HEAD 7340133 with no commit for these changes, so they are working-tree edits only.

After (expected)

  • Either the overlay is committed as its own commit ("flisk: apply premium resources") so git status is clean, or it writes only new/untracked files and ignored paths
  • The message lists which files it changed ("rewrote 2, removed 1") instead of "unlocked (12 files)" (12 files reported, 3 tracked files visible in git)
  • README links never point at a section whose target file was removed

Acceptance criteria

  • git status --short prints 0 lines after flisk project <template> (or the changes are one visible commit)
  • The summary line counts match git diff --stat (files changed/removed)
  • README of each starter has 0 dangling links after the overlay (link check in CI)
  • Test: clone each of the 17 templates, assert clean tree

Related

#127 (AGENTS.md and skills link to a disabled repo) is the same class: generated or cloned content that disagrees with itself.

Lingua principale
TypeScript
Stelle
1
Fork
2
Merge medio
11h 39m
PR unite (30g)
92

Preparare l'ambiente

Apri in Codespaces

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

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 flisk-sh/flisk-cli

Tutte le issue di flisk-sh/flisk-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.