debug icon indicating copy to clipboard operation
debug copied to clipboard

Please fix the spell mistake in 2.4.0

Open hefangshi opened this issue 9 years ago • 69 comments

https://github.com/visionmedia/debug/blob/master/debug.js#L126

https://travis-ci.org/fex-team/node-ral/jobs/183832044

hefangshi avatar Dec 14 '16 06:12 hefangshi

Please tone it down, everybody. Mistakes happen. It's been about 30-40 minutes, and it's being worked on right now.

ljharb avatar Dec 14 '16 07:12 ljharb

Hey guys. Apologies for the busted release. We currently don't have static analysis or tests set up. I've released 2.4.1 with a hotfix. I agree it is ridiculous. Currently adding test coverage and static analysis via eslint myself to make sure future releases don't shit the bed :)

thebigredgeek avatar Dec 14 '16 07:12 thebigredgeek

I wasn't at all serious about the invoice, but we do currently have two developers assigned to investigate this internally.

Our yarn.lock file was supposed to install 2.3.3 during our CI/CD process, but for some reason it jumped to the broken 2.4.0 version. This highlights an issue with our build/deploy process rather than this package itself, broken releases are always a possibility but it shouldn't be possible to install a different version to Production than on a local Development environment.

I'm starting to wonder if it's a bug in Yarn itself. It's the end of the day here for us, and luckily none of our deploys were mission-critical (again, I was joking about the invoice). Hopefully this is resolved by tomorrow, otherwise we'll use one of the above workarounds (or lock down the debug.js version in package.json and switch back to npm install).

Also, hopefully this means automated testing can be added to this package to prevent these issues from occurring in future. There already seems to be some great suggestions above.

chrisatomix avatar Dec 14 '16 07:12 chrisatomix

Just did an npm install, and all works fine now. Shit happens, thanks for the ultrafast fix up @thebigredgeek, @diedsmiling

navinpeiris avatar Dec 14 '16 07:12 navinpeiris

@chrisatomix don't worry dudes you are save 😄 you just forgot the emoticon

theredfoxfire avatar Dec 14 '16 07:12 theredfoxfire

Aha. Just facing the issue and it is already fixed :). Good job guys!

nfroidure avatar Dec 14 '16 07:12 nfroidure

now ok

kid-wumeng avatar Dec 14 '16 07:12 kid-wumeng

@thebigredgeek "I saw what you did there" meme

catamphetamine avatar Dec 14 '16 07:12 catamphetamine

@2.4.1 Released :tada:

sushantdhiman avatar Dec 14 '16 07:12 sushantdhiman

@chrisatomix It's not a problem with yarn nor your own CI/CD process. It's a general problem with the npm ecosystem because most dependencies of projects are dynamic.

In my case, it's not a direct dependency of my project. But it's a dependency of a dependency where we don't have control anymore.

dashmug avatar Dec 14 '16 07:12 dashmug

@chrisatomix it broke my build too, but I really can't figure out how - as far as I can tell everything (including dependencies) is locked to 2.3.3.

doublesharp avatar Dec 14 '16 07:12 doublesharp

@thebigredgeek Thank you very much for the quick response and the fix.

dashmug avatar Dec 14 '16 07:12 dashmug

@thebigredgeek thanks for the quick fix, and thank You and @TooTallNate for Your hard work. This kind of little mistakes make us better, so don't worry too much about it. Please keep up the great work, we really appreciate it. :)

zoltan-nz avatar Dec 14 '16 07:12 zoltan-nz

That's an awesome thread people :) Thanks @thebigredgeek for your hard work!

Merry Xmas :)

koresar avatar Dec 14 '16 07:12 koresar

🎉 Huge thanks to everyone who jumped on this so quickly. Your efforts are much appreciated.

joshsmith avatar Dec 14 '16 07:12 joshsmith

@chrisatomix @doublesharp are you installing yarn using npm? yarn itself depends on debug so if you aren't using the pre-packaged builds then that's probably your issue: https://github.com/yarnpkg/yarn/blob/master/package.json#L15

chancancode avatar Dec 14 '16 07:12 chancancode

@koresar not me. Thanks to everyone who put in PRs. All I had to do was hit the merge button, run a sanity check, and publish haha.

thebigredgeek avatar Dec 14 '16 07:12 thebigredgeek

With regards to yarn, I highly recommend installing via yum/homebrew/apt-get. You'll have a better experience

thebigredgeek avatar Dec 14 '16 07:12 thebigredgeek

@chancancode I think you've nailed it, we assumed it was because of a browsersync dependency. Didn't realise this package was also used by Yarn itself! Definitely need to switch to pre-packaged builds.

@thebigredgeek Great advice :+1: This typo might turn out to be a blessing in disguise if it makes our builds more robust :)

chrisatomix avatar Dec 14 '16 07:12 chrisatomix

害苦我了

SallyOne avatar Dec 14 '16 07:12 SallyOne