-
Notifications
You must be signed in to change notification settings - Fork 54
Conversation
log.progressEnabled = log.gauge.isEnabled() | ||
} else { | ||
// older versions of gauge do not have isEnabled, and some dependency graphs resolve to it | ||
// see https://github.com/npm/npmlog/issues/48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be some kind of warning here?
If not, I can just remove the else
and move the comment above the if
. Please advise 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous behavior was to explicitly set log.progressEnabled
to false, so I would do that here.
Would be great if this can be merged. this |
I have to reinstall npm-check-updates as soon as I make an update with yarn because of this. Could someone merge this please? 🙏 |
Ping @iarna - I see this repo hasn't had a new commit in a little while, but could we please have a patch version? |
Ok, I'm confused… as far as I can tell, the only way for npmlog to be installed with a gauge without isEnabled is for the install to be completely mangled. This is why…
And npmlog added its use of
I dug in further and see this is caused by a bug in Yarn's handling of bundled dependencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me to take this, this should also change the required version range for gauge to include the version that your Yarn bug needs. That will at least making the resulting Yarn tree valid.
log.progressEnabled = log.gauge.isEnabled() | ||
} else { | ||
// older versions of gauge do not have isEnabled, and some dependency graphs resolve to it | ||
// see https://github.com/npm/npmlog/issues/48 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previous behavior was to explicitly set log.progressEnabled
to false, so I would do that here.
@JoshuaKGoldberg Are you still interested in working on this? |
Oh hi @aeschright. No, sorry, I didn't notice @iarna's comments back in September but have since lost interest and don't have the time to jump back in. Feel free to take my code and do whatever you wish. 😄 |
Older versions of gauge do not have isEnabled, and some dependency graphs resolve to it. Fixes #48.
I don't like checking for previous versions of the API but I'm also tired of getting giant error stacks every time I install via
yarn
. Short of updating thegauge
version in everybody who uses it (if only!), there doesn't seem to be any other way to fix 48. 😢