buildbot / buildbot/generator-buildbot-dashboard
generator fails because .gitignore does not exist
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
I tried running the generator got the following:
events.js:182
throw er; // Unhandled 'error' event
^
AssertionError [ERR_ASSERTION]: Trying to copy from a source that does not exist: /usr/local/share/.config/yarn/global/node_modules/generator-buildbot-dashboard/generators/app/templates/.gitignore
at EditionInterface.exports.copy (/usr/local/share/.config/yarn/global/node_modules/mem-fs-editor/lib/actions/copy.js:47:3)
at EditionInterface.module.exports [as copyTpl] (/usr/local/share/.config/yarn/global/node_modules/mem-fs-editor/lib/actions/copy-tpl.js:10:8)
at module.exports.writing (/usr/local/share/.config/yarn/global/node_modules/generator-buildbot-dashboard/generators/app/index.js:115:21)
at Object.<anonymous> (/usr/local/share/.config/yarn/global/node_modules/yeoman-generator/lib/index.js:417:23)
at /usr/local/share/.config/yarn/global/node_modules/run-async/index.js:25:25
at Promise (<anonymous>)
at /usr/local/share/.config/yarn/global/node_modules/run-async/index.js:24:19
at /usr/local/share/.config/yarn/global/node_modules/yeoman-generator/lib/index.js:418:9
at runCallback (timers.js:781:20)
at tryOnImmediate (timers.js:743:5)
I was able to get past this by manually creating an empty .gitignore in the directory where it was looking for it.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect generators/app/index.js around line 115 and the generators/app/templates directory, focusing on the missing .gitignore source identified in the error. Re-run the generator after the change; done means it no longer raises the missing-source assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100