Closed dbuenzli closed 11 years ago
The same is true for pinning with a remote repo. However the error is different. Here it doesn't try to use the toplevel opam
file from the git repo, it uses the (now outdated) regular one from ocamlpro's repo. The override doesn't work.
> opam pin uutf https://github.com/dbuenzli/uutf
> opam update
pkgopkg Fetching http://erratique.ch/repos/pkgopkg.git
erratique-u Downloading http://erratique.ch/software/opam/unreleased/urls.txt
default Downloading http://opam.ocamlpro.com/urls.txt
Updating ~/.opam/repo/index ...
Updating ~/.opam/compilers/ ...
Updating ~/.opam/packages/ ...
gg.unreleased Fetching https://github.com/dbuenzli/gg.git
pkgopkg.repo Fetching http://erratique.ch/repos/pkgopkg.git
vg.unreleased Fetching https://github.com/dbuenzli/vg.git
vz.unreleased Fetching https://github.com/dbuenzli/vz.git
webglue.unreleased Fetching https://github.com/dbuenzli/webglue
ctypes.pinned Fetching https://github.com/ocamllabs/ocaml-ctypes.git
Updating the cache of metadata (~/.opam/state.cache) ...
Everything is up-to-date.
> opam install uutf
The following actions will be performed:
- install uutf.pinned
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Installing uutf.pinned
uutf.pinned Fetching https://github.com/dbuenzli/uutf
Copying /Users/dbuenzli/.opam/4.00.1/overlay/uutf.pinned/files/uutf.install to /Users/dbuenzli/.opam/4.00.1/build/uutf.pinned/
Building uutf.pinned:
ocaml setup.ml -configure --prefix /Users/dbuenzli/.opam/4.00.1
ocaml setup.ml -build
ocaml setup.ml -install
The compilation of uutf.pinned failed.
Removing uutf.pinned.
ocamlfind remove uutf
==== ERROR [while installing uutf.0.9.1] ====
# opam-version 1.1.0 (92d02d4eaa3deb09f04c5ce3325fa4ef945e2009)
# os darwin
# command ocaml setup.ml -configure --prefix /Users/dbuenzli/.opam/4.00.1
# path /Users/dbuenzli/.opam/4.00.1/build/uutf.pinned
# compiler 4.00.1
# exit-code 2
# env-file /Users/dbuenzli/.opam/4.00.1/build/uutf.pinned/uutf-81538-d2d111.env
# stdout-file /Users/dbuenzli/.opam/4.00.1/build/uutf.pinned/uutf-81538-d2d111.out
# stderr-file /Users/dbuenzli/.opam/4.00.1/build/uutf.pinned/uutf-81538-d2d111.err
### stderr ###
Cannot find file setup.ml.
'opam install uutf' failed.
I've tested your two examples and they seem to work fine on master
.
Excellent, I also just tested with a dummy repo, it seems to work. Thanks for the fix.
It seems the feature that makes pinned repo read a toplevel
opam
file (2641bf825908) doesn't work.Short version:
Long version: