You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update dependency nopt to latest major release #11012
We have an effort in progress to make sure we remove any out of date or deprecated dependencies. This means that any dependency that is a major (or more!) behind we should update it
Hi @mansona! I've caught up on the discussion in #11019 and #10907. It seems the main hurdle is the behavior change in nopt regarding strings starting with dashes. I’m a Computer Engineering student and a first-time contributor here - I’d like to try a version of this PR that avoids the 'masking/unmasking' logic. I'll start by seeing if nopt v8 or v9 can be implemented by adjusting the test expectations or using a simpler configuration, as suggested by @bertdeblock.
Hello @mansona, I’ve opened #11021 which attempts to solve this upgrade by updating the unit test rather than using masking logic, following the suggestion to keep the implementation simpler. Verified locally on Windows with all core CLI tests passing.
AFAICT, simply updating the test to make it pass against v9, would be the same as just deleting it.
FYI, it seems that --options --split 2 --random parsing to '--options': '--split 2 --random' worked by accident in nopt@v3, and since ember-exam relied on this, ember-cli never updated nopt. npm/nopt#80 has been open for 9+ years now, so personally, I would just updated nopt in ember-cli and remove the test, and do the necessary fixes in ember-exam.
Hi @bertdeblock, thank you for the detailed context! That makes total sense. If the community is ready to officially drop that accidental v3 behavior and handle the fixes over in ember-exam, I'm happy to update this PR accordingly.
I can go ahead and remove that specific unit test from this PR so we can cleanly merge the nopt@v9 upgrade here. Let me know if you'd like me to proceed with that!
Activity
Bimal-ray99 commentedon May 4, 2026
I'd like to work on this. Will open a PR soon.
mansona commentedon May 10, 2026
Just so you know that there is a PR already that has made an attempt at it: #11019
I have a gut feeling that it's a bit much of a change 🤔 but I haven't had the time to look into it completely
Kunal184 commentedon May 13, 2026
I would like to be assigned to this issue, also do you have a contribution guide?
nulllkomalll commentedon May 14, 2026
Hi @mansona! I've caught up on the discussion in #11019 and #10907. It seems the main hurdle is the behavior change in nopt regarding strings starting with dashes. I’m a Computer Engineering student and a first-time contributor here - I’d like to try a version of this PR that avoids the 'masking/unmasking' logic. I'll start by seeing if nopt v8 or v9 can be implemented by adjusting the test expectations or using a simpler configuration, as suggested by @bertdeblock.
nulllkomalll commentedon May 14, 2026
Hello @mansona, I’ve opened #11021 which attempts to solve this upgrade by updating the unit test rather than using masking logic, following the suggestion to keep the implementation simpler. Verified locally on Windows with all core CLI tests passing.
bertdeblock commentedon May 18, 2026
AFAICT, simply updating the test to make it pass against v9, would be the same as just deleting it.
FYI, it seems that
--options --split 2 --randomparsing to'--options': '--split 2 --random'worked by accident in nopt@v3, and since ember-exam relied on this, ember-cli never updated nopt.npm/nopt#80 has been open for 9+ years now, so personally, I would just updated nopt in ember-cli and remove the test, and do the necessary fixes in ember-exam.
nulllkomalll commentedon May 18, 2026
Hi @bertdeblock, thank you for the detailed context! That makes total sense. If the community is ready to officially drop that accidental v3 behavior and handle the fixes over in ember-exam, I'm happy to update this PR accordingly.
I can go ahead and remove that specific unit test from this PR so we can cleanly merge the nopt@v9 upgrade here. Let me know if you'd like me to proceed with that!
nulllkomalll commentedon May 21, 2026
@mansona, @bertdeblock any updates on this!!!