-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(commit): use OS-specific cache dir for commitizen.json instead of home-or-tmp #400
Conversation
Sigh. I forgot that |
I have merged your PR to node-cachedir, you can depend on |
Nice 👌 |
Any idea about the test failure? |
Not particularly. It runs fine locally (otherwise I wouldn't be able to commit). I think it has something to do with how the CI is set up, because it looks like AppVeyor has one error and Travis has another. |
I'll look into CI. |
Still looking into this but this is what I get when I run
|
Strange. I just checked out my branch on a machine that has never had commitizen installed on it, ran |
@malept I wonder if it has to do with the fact that I have a commitizen adapter installed globally so that I can use the cli in directories that don't have an adapter initialized. |
That would explain the error you're getting. |
Yeah renaming my ~/.czrc file made it so that all tests pass locally. Working on CI still. |
I have a branch where I am working on CI errors. We were not reporting git log errors in test. |
Here are the actual errors we're getting. Looking at our builds, this was introduced earlier so it is not specifically due to this PR. Could be a git config change on Travis that we didn't catch. Either way you can track this on #401. |
@malept I just pushed a fix for CI to master so if you merge master into your branch you should get those CI changes and your tests should pass. |
@jimthedev thanks for the heads up, I will rebase/squash later tonight. |
bc5f5c0
to
18c420b
Compare
Looks good. Our appveyor tests are failing just due to how long they run but travis seems happy. |
Closes #339 as well. |
* master: docs(install): Add documentation for installing and running locally (#300) fix(tests): fix tests when a global config is present (#405) test(adapter): add test for scoped npm modules fix(adapter): add support for scoped adapters docs: Add cz-emoji to tools list (#404) feat(commit): use OS-specific cache dir for commitizen.json instead of home-or-tmp (#400) fix(npmignore): ignore more unnecessary files (#393) docs: add vscode-commitizen to tools list (#397) Ci issues with commits (#402) chore(ci): add node versions and say git version in ci docs: replace sudo mention with link to how to fix EACCES error
* master: fix(package): "main" property within "package.json" (#409) style: Add linting using eslint (#406) ci(appveyor): remove appveyor on finish script ci(appveyor): disable collection of artifacts ci(tests): on windows run tests as node4/npm3 ci(travis): update semantic-release to 6.3.5 and update travis config chore(package): update nyc to version 10.0.0 (#392) docs(install): Add documentation for installing and running locally (#300) fix(tests): fix tests when a global config is present (#405) test(adapter): add test for scoped npm modules fix(adapter): add support for scoped adapters docs: Add cz-emoji to tools list (#404) feat(commit): use OS-specific cache dir for commitizen.json instead of home-or-tmp (#400) fix(npmignore): ignore more unnecessary files (#393) docs: add vscode-commitizen to tools list (#397) Ci issues with commits (#402) chore(ci): add node versions and say git version in ci docs: replace sudo mention with link to how to fix EACCES error
* master: (25 commits) chore(package): update lodash to version 4.17.2 (#389) chore(package): update ghooks to version 1.3.2 (#277) chore(package): update babel-preset-stage-2 to version 6.18.0 (#371) chore(package): update babel-preset-es2015 to version 6.18.0 (#370) chore(package): update babel-cli to version 6.18.0 (#369) chore(package): update axios to version 0.15.2 (#366) chore(package): update find-node-modules to version 1.0.4 (#346) fix(package): "main" property within "package.json" (#409) style: Add linting using eslint (#406) ci(appveyor): remove appveyor on finish script ci(appveyor): disable collection of artifacts ci(tests): on windows run tests as node4/npm3 ci(travis): update semantic-release to 6.3.5 and update travis config chore(package): update nyc to version 10.0.0 (#392) docs(install): Add documentation for installing and running locally (#300) fix(tests): fix tests when a global config is present (#405) test(adapter): add test for scoped npm modules fix(adapter): add support for scoped adapters docs: Add cz-emoji to tools list (#404) feat(commit): use OS-specific cache dir for commitizen.json instead of home-or-tmp (#400) ...
This is a continuation of #252. I would have used the existing commits in that PR, but the branch was no longer available.
Since I added
fs-extra
for theensureDir
function, I also replacedrimraf
usage with the equivalentfs-extra
functionality.Fixes #240, #339.
Closes #252.
TODO
cachedir
that has Windows support