Need to show a warning if Git LFS is used
- Lingua principale
- Ruby
- Stelle
- 1.9k
- Fork
- 360
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Before submitting an issue, please be sure to
- [x] Read [the contributing instructions](https://github.com/github/pages-gem/blob/master/.github/CONTRIBUTING.md#contributing-to-the-github-pages-gem)
- [x] Update to the latest Gem version (run `bundle update github-pages`)
### This issue affects
- [ ] The site generated by GitHub Pages
- [x] Building sites locally
### What did you do (e.g., steps to reproduce)
1. `jekyll new .`
1. `git init .`
1. `git lfs install`
1. `mkdir big-user-content && cd big-user-content`
1. `git lfs track '*.png'`
1. `git lfs track '*.jpg'`
1. `git lfs track '*.gif'`
1. `cd ..`
1. add content...
1. `bundle exec jekyll serve` - testing site - **Ok**.
1. `git add .`
1. `git commit -m "Hello world"`
1. `bundle exec jekyll serve` - testing site, again - **Ok**.
1. `git remote add origin https://github.com/:user/:repo.git`
1. `git push --all -u origin`
1. open `https://:user.github.io/:repo/` site -> **Woops, where is my images?**
1. googling:
- git-lfs/git-lfs#791
- git-lfs/git-lfs#1342
1. recreate the repo...
### What did you expect to happen?
1. `jekyll new .`
1. `git init .`
1. `git lfs install`
1. `mkdir big-user-content && cd big-user-content`
1. `git lfs track '*.png'`
1. `git lfs track '*.jpg'`
1. `git lfs track '*.gif'`
1. `cd ..`
1. add content...
1. `bundle exec jekyll serve` - testing site - **Warning!**.
### What happened instead?
See "steps to reproduce".
### Solutions
- [fast] check if `.git/lfs` directory is exist and not empty
- [proper] parse `git lfs track` and `git lfs ls-files` output
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il comportamento segnalato con `bundle exec jekyll serve` dopo aver tracciato i file immagine con Git LFS, quindi esamina il percorso di build locale di Jekyll utilizzato dalle dipendenze di pages-gem. Il lavoro è completato quando una build locale mostra un avviso se è presente contenuto Git LFS, invece di produrre silenziosamente immagini mancanti; l’issue indica il controllo di `.git/lfs` o l’analisi dell’output di Git LFS come possibili approcci.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git, ruby
- Ambito
- build-system
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100