-
Notifications
You must be signed in to change notification settings - Fork 368
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
Consistent accepted repository links #6091
Conversation
341769c
to
14aab5b
Compare
14aab5b
to
41f96aa
Compare
src/client/opamCommands.ml
Outdated
`Pre " opam switch create trunk --repos \ | ||
default,beta=git+https://github.com/ocaml/ocaml-beta-repository.git \ | ||
default,beta=https://github.com/ocaml/ocaml-beta-repository.git \ | ||
ocaml-variants.4.10.0+trunk"; |
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 should also be guarder by a cli version, no ?
`Pre (Printf.sprintf
" opam switch create trunk --repos \
default,beta=https://github.com/ocaml/ocaml-beta-repository.git \
ocaml-variants.4.10.0+trunk"
(if OpamCLIVersion.Op.(cli @>= cli2_3) then "" else "git+"));
new behaviour in 2.3, old behaviour is stil available with cli < 2.3
66d4a21
to
2379d84
Compare
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.
Thanks!
I've updated it, squashed commits and set manpage documentation dependent on requested cli version
opam switch create foo --repos bar=[url]
should no longer requiregit+
to be accepted. Consistent withopam repository add
.fixes #4673