Closed rsanheim closed 1 month ago
Figuring some things out via https://github.com/freerange/mocha/issues/614 and https://github.com/minitest/minitest/issues/960 ...
Fixed in #324
I'm not seeing this, but I also haven't updated the infrastructure for the latest Rubies. I'm using Ruby 3.2.4 (which happens to be what I have) and bin/rake
succeeds without any issues. By default, it picked up Minitest 5.18.1 which is somewhat recent.
See https://github.com/davetron5000/gli/tree/docker-devcontainer for what I have been using locally. Also, the code doesn't reference the old constant, so not sure how that could be a problem.
Can you try with the oldest supported Ruby, which is 3.1?
Here is the workflow:
your-computer> dx/setup
your-computer> dx/buid
your-computer> dx/start
your-computer> dx/exec bash
inside-dev-container> bin/setup
inside-dev-container> bin/rake
That, for me, works without any issues.
That said, I am definitely unclear about if I need minitest, where it is in the Ruby stdlib or what happened there, so this setup may happen to work, but was created a long time ago and not changed much since.
OK, I have recreated this - not sure what I was doing before. Will examine your PR and be back in touch
See #325 for the fix. Thanks again for finding this!
Thanks for the fix!
I wasn't aware of the docker dev setup (as you discovered and documented 😁 ), and normally just prefer to develop gems & libraries locally if the dependency list is small. I'm sure w/ #325 either way will work easily now 👍 .
I was poking around in gli and wanted to take a shot at adding some features to the
init
command, but wasn't able to get it run tests locally. Part of the issue is that it looks like things are locked to ruby 2.7.1 as well as an old version of Minitest before theMiniTest
->Minitest
rename.I first tried using Ruby 3.3.4 locally locking to Minitest v4, before the rename, but think I hit other minitest issues:
Then I tried ruby 2.7.6, which I think is one of the older Rubies still installable on ARM macs, and still hit some test issues:
Not sure where to go from here, as i'm not sure what version of minitest should actually be in use here?