-
Notifications
You must be signed in to change notification settings - Fork 86
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
Alternate short channel matching support #838
base: main
Are you sure you want to change the base?
Conversation
9c06002
to
c87cef1
Compare
c87cef1
to
3637d86
Compare
3637d86
to
8091d97
Compare
8091d97
to
f742e97
Compare
f742e97
to
f5f36cb
Compare
f5f36cb
to
8d70142
Compare
8d70142
to
d4b53a5
Compare
cfbbe53
to
e326367
Compare
I don't like this because I could have Julia 1.6.2 as the only installed version and then run The reasons this short matching works okay in Julia (and some other programs') command matching is that
Whereas in this use case,
|
ca3eca8
to
e33ff73
Compare
I've updated to not match on version numbers. The approach feels hacky but also I don't know if it needs to be more complicated. Unfortunately the new tests end up downloading 2 extra Julia versions so that might take up a lot more time. Maybe I should test with channels linked to already downloaded versions? |
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.
tests/channel_selection.rs
Outdated
.arg("-e") | ||
.arg("print(VERSION)") |
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.
These are also unnecessary
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.
This might be a stupid question but how does the test not get stuck in the REPL without the "-e"?
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.
Good point; that is necessary (or -v or something)
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.
I was asking because the tests pass without them and I was genuinely wondering what made it work. I'll add -v to be safe though.
@LilithHafner Thank you very much for your review! I've addressed your feedback and implemented all your suggestions. Regarding this PR or #836, I wrote this because I sometimes write more than just the first letter, and I want this feature to work with linked channels. Also, for someone like me who sometimes tries out PRs but rarely more than one at a time, once #903 is a thing, it'll be nice to be able to call |
@rakeshksr @christiangnrd and espeically @davidanthoff, could we discuss which option we prefer (#838 vs #836) both are imo ready to merge but we need to pick which. |
c03593b
to
33ee951
Compare
My justification for preferring this approach is in my previous comment. To add to that, I always have a |
e898dbf
to
20b739d
Compare
8d04e4b
to
1eebbd4
Compare
1eebbd4
to
7994015
Compare
I think I've finally am getting clarity what I'm thinking about this, see #830. |
7994015
to
75671e3
Compare
Closes #836 and closes #830.
If the channel is the prefix for one and only one installed channel, use that, otherwise old behaviour. This behaves more like the julia command line arguments
Should work with any installed channel including linked channels instead of a hard-coded few.