-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nushell: 0.5.0, add --locked flag to cargo install #46505
Conversation
As expected, the build passes but it's just |
I discovered the source of this issue after some testing with different versions of Nushell. Apparently the behavior of Ctrl+D changed after Nushell v0.2.0. For example, if you open a The test was written with v0.2.0 of Nushell, so it passes in that context but hangs with Nushell v0.3.0 to v0.5.0. Looking at issues in the Nushell repo, they may revert the change in a future version but this particular test won't pass until there's a release with the expected Ctrl+D behavior. I think for the interim time we may just have to use something like |
59507fd
to
e1a82d1
Compare
I think it works for me. This is really good rust formula though, so I definitely want to get it out and worry about the quality later on. :) |
Let's keep an eye on the future releases. |
@BrewTestBot test this please |
@samford Oh, looks like they just reverted the change yesterday. |
I meant to mention that yesterday but you've already found it. The next release should be back in line with the Ctrl-D behavior from version 0.2.0 and the proper test can be reinstated then. I installed Nushall using the assert_equal "#{Dir.pwd}> 2\n#{Dir.pwd}> ", pipe_output("#{bin}/nu", 'echo \'{"foo":1, "bar":2}\' | from-json | get bar | echo $it') It seems like Nushell's recent release cadence is around a month but the current version number in Nushell's Cargo.toml file is 0.5.1, so they may push out a patch release containing the change rather than wait until the next minor release. Either way, I'll get a notification when the next release comes and I can create another PR if no one gets to it first. |
FYI:
Is this expected? Perhaps it's just a matter of time until the bottle becomes available? |
@waldyrious Just fixed it, thanks for bringing it up!
|
Confirmed, it works now. Thanks for the quick fix! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew test <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?Rust 1.39.0 is now in Homebrew (#46465), so we can remove the use of nightly in this formula. I also bumped the version and added the
--locked
flag tocargo install
(per #46025).When I tried to run
brew test nushell
locally, it hung on my system (macOS Catalina, 10.15.1) and wouldn't complete. Outside of the test, simply runningnu
opens the shell as expected. Let's see what happens on the CI server.