Skip to content
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

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

Keryan-dev
Copy link
Collaborator

@Keryan-dev Keryan-dev commented Jul 11, 2024

opam switch create foo --repos bar=[url] should no longer require git+ to be accepted. Consistent with opam repository add.

fixes #4673

@kit-ty-kate kit-ty-kate added this to the 2.3.0~alpha milestone Jul 11, 2024
src/client/opamCommands.ml Outdated Show resolved Hide resolved
@rjbou rjbou self-requested a review July 15, 2024 15:44
@Keryan-dev Keryan-dev force-pushed the consistent-repo-url branch from 341769c to 14aab5b Compare July 16, 2024 12:43
@Keryan-dev Keryan-dev force-pushed the consistent-repo-url branch from 14aab5b to 41f96aa Compare July 18, 2024 13:48
master_changes.md Outdated Show resolved Hide resolved
Comment on lines 2713 to 2715
`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";
Copy link
Collaborator

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+"));

@rjbou rjbou force-pushed the consistent-repo-url branch from 66d4a21 to 2379d84 Compare August 9, 2024 17:05
@rjbou rjbou requested a review from kit-ty-kate August 9, 2024 17:05
Copy link
Collaborator

@rjbou rjbou left a 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

@rjbou rjbou merged commit 158b2ec into ocaml:master Aug 9, 2024
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

doesn't work: custom repo when creating switch
4 participants