Please fix the spell mistake in 2.4.0
https://github.com/visionmedia/debug/blob/master/debug.js#L126
https://travis-ci.org/fex-team/node-ral/jobs/183832044
This is a good wake up call to start using npm shrinkwrap or yarn
Glad this shit show can be a learning lesson for some of us haha
@chancancode I'm not using yarn, this is an express app. All is well again now that 2.4.1 has been pushed, but I can't tell what dependency is even grabbing the latest version, grepping all the package.json files shows 2.3.3.
@chrisatomix Are you using yarn in production ?
#761 is still open, which doesn't install correct dependencies on using --production flag.
So does your production build include dev dependencies ?
cc: @thebigredgeek @awestroke
https://github.com/visionmedia/debug/commit/f77ca5d56c06a98cd81ade020a2ffbf2c73940a6 < in case anyone is interested, boilerplate for tests, linting, and v3 roadmap (ES2015 + full test coverage) has been added. Waiting on admin access to integrate with circle ci :)
@KunalKapadia Using it on our CI/CD server to compile CSS/JS files, if the build is successful then it deploys to Production. We don't actually use Yarn on our Production servers themselves. Also, all our dependencies are specified as dev dependencies, so I don't think that open issue would affect us anyway.
@thebigredgeek I just sent a PR that duplicates some of what you did and includes a few other things that might be useful, feel free to use as you please. Thanks!
@doublesharp thanks will look into it when I get some free time. Currently sick, so deploying tonight probably wasn't a great choice on my part
@halt-hammerzeit lol
thank you for the quick fix ❤️
@doublesharp don't grep package.json, do npm ls debug
@codeaholics Sorry, I wasn't totally clear, I did that, and then I grep'd just to double check. Everything is either 2.2.0 or 2.3.3, so I'm not sure what was grabbing the latest version of debug.
npm ls debug
├─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
What's even more confusing is that it was working just fine on my laptop (even with deleting node_modules and running npm install) but was failing on my Jenkins server.
Interesting. As others have pointed out, Yarn uses (perhaps directly, perhaps transitively) debug. I know you said you aren't using Yarn, but I just checked, and so does NPM - although latest (4.0.3) still only appears to bring in debug 2.2.0. It seems like there's a difference between the versions of the tools (or the NPM config?) being used between your laptop and your CI server.
Either way, I'm guessing you're all sorted now any way.
@codeaholics It's all working again, but definitely confusing. FWIW - the version of node and npm is the same, and the Jenkins server deletes the workspace and installs node locally for each build... I actually just reinstalled both from scratch a few days ago so I'm certain this is the case. The only difference is my laptop is a Mac and Jenkins is on CentOS7.
@thebigredgeek Let me know if you want some help setting up CI. It'll save your bacon in cases like this, and I am a QA professional by day as well as my company's build engineer, so I'm willing to offer what assistance I can. The SockDrawer team really appreciates the Debug library :) I'd love to help give something back
Folks who mentioned spending time tracking down a broken dependency - you should give https://greenkeeper.io/ a shot. It creates a branch to run CI for every update to every one of your first-order dependencies. Since we started using it, we have not once had to track down which dep broke our build (e.g., I came in this morning and already knew debug had broken a couple projects :smile_cat:)
/CC @chrisatomix
To the entitled people: donate some money (or time), then maybe maintainers will have more time to devote to the free software that you use every day. If you think it's ridiculous to not have CI, then send a pull-request. This is why I effectively quit OSS, it's already one-sided, don't make it worse :D.
Contributing to the project or just being gracious won't hurt either.
On Dec 14, 2016 10:09 AM, "TJ Holowaychuk" [email protected] wrote:
To the entitled people: donate some money, then maybe people will have more time to devote to the free software that you use every day.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/visionmedia/debug/issues/347#issuecomment-267109014, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi4ULMXu2sixyf7WtC_Npurcqz8xcOIks5rIDDfgaJpZM4LMl7l .
To follow up on what @tj said, you can read about just how one-sided and broken this situation is in Nadia Eghbal's report, Roads and Bridges.
If you want to help fix this problem, some thoughts:
- Donate money to projects, for example the ones on Open Collective
- Submit a pull request
- This time of year you can use 24 Pull Requests
- Find some issues on CodeTriage
- Find some issues with First Timers Only
- Every month we post a "Who needs contributors?" thread on HN
- Ask maintainers if you can help triage issues
- As @doublesharp said: at the minimum, just show some empathy
- Push back against demanding or entitled people, but also help them to understand just how broken OSS is for maintainers
And though I'm biased, keep an eye on https://github.com/code-corps, too, to find ways to help. Clearly the contributor funnel is broken. We also need to be kinder. Do what you can to help fix it.
I honestly don't hold it against anyone here who was upset by the broken release. The industry itself is way more high stress than it should be, with engineers working under constant pressure for 60+ hours a week and their jobs always threatened by unreasonable managers. So when a package like this breaks they flip out. I think it has less to do with OSS being broken for maintainers and more to do with the industry as a whole being dysfunctional and that dysfunction cascading into OSS