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

opam search now look in configurable locations. #1655

Merged
merged 3 commits into from Aug 27, 2014

Conversation

samoht
Copy link
Member

@samoht samoht commented Aug 26, 2014

The list of search files can be set by changing OpamSearch.search_files
(the default is to look for "findlib" files).

$ cat ~/.opam/repo/platform/packages/opamfu/opamfu.42/findlib
supercool

$ opam search supercool -s
opamfu

The list of search files can be set by changing OpamSearch.search_files
 (the default is to look for "findlib" files).

$ cat ~/.opam/repo/platform/packages/opamfu/opamfu.42/findlib
supercool

$ opam search supercool -s
opamfu
Read the arguments of `ocamlfind remove` to populate the PKG/findlib file.
We need a more robust function (which install the package) but that's already a
good start.

opam-repository$ opam-admin findlib --infer ocamlnet
Processing (package) ocamlnet.3.2.1
Processing (package) ocamlnet.3.5.1
Processing (package) ocamlnet.3.6.0
Processing (package) ocamlnet.3.6.3
Processing (package) ocamlnet.3.6.5
Processing (package) ocamlnet.3.7.3
Processing (package) ocamlnet.3.7.4
Processing (package) ocamlnet.3.7.4-1

opam-repository$ $ cat packages/ocamlnet/ocamlnet.3.7.4-1/findlib
equeue
equeue-gtk2
equeue-ssl
netcamlbox
netcgi2
netcgi2-plex
netclient
netgssapi
nethttpd
nethttpd-for-netcgi2
netmech-scram
netmulticore
netplex
netshm
netstring
netstring-pcre
netsys
netzip
pop
rpc
rpc-auth-local
rpc-generator
rpc-ssl
shell
smtp
AltGr added a commit that referenced this pull request Aug 27, 2014
`opam search` now look in configurable locations.
@AltGr AltGr merged commit 7118173 into ocaml:master Aug 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants