Skip to content
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

os.tmpDir Error due to depreciated #122

Open
jny986 opened this issue Oct 30, 2020 · 0 comments
Open

os.tmpDir Error due to depreciated #122

jny986 opened this issue Oct 30, 2020 · 0 comments

Comments

@jny986
Copy link

jny986 commented Oct 30, 2020

Using Gittio with the latest version of os causes the following error:

`/Users/josh/.config/yarn/global/node_modules/gittio/lib/dist.js:59
return path.join(os.tmpDir(), Date.now().toString() + '-' + Math.random().toString().substring(2));
^

TypeError: os.tmpDir is not a function
at generateTempDir (/Users/josh/.config/yarn/global/node_modules/gittio/lib/dist.js:59:23)
at Object.exports.download (/Users/josh/.config/yarn/global/node_modules/gittio/lib/dist.js:43:27)
at /Users/josh/.config/yarn/global/node_modules/gittio/lib/gittio.js:336:14
at Array.forEach ()
at Function..each..forEach (/Users/josh/.config/yarn/global/node_modules/underscore/underscore.js:79:11)
at component.lookup.action (/Users/josh/.config/yarn/global/node_modules/gittio/lib/gittio.js:320:7)
at Request._callback (/Users/josh/.config/yarn/global/node_modules/gittio/lib/component.js:40:7)
at Request.self.callback (/Users/josh/.config/yarn/global/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request. (/Users/josh/.config/yarn/global/node_modules/request/request.js:1154:10)`

I will try to create a backwards compatible fix for this and submit if I have the chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant