* [Caml-list] dune and odoc
@ 2019-04-06 23:28 Helmut Brandl
2019-04-07 7:41 ` Daniel Bünzli
0 siblings, 1 reply; 5+ messages in thread
From: Helmut Brandl @ 2019-04-06 23:28 UTC (permalink / raw)
To: caml users
Hello list,
I have learned that dune is the build manager which should be used for ocaml packages. I am currently using ocamlbuild and tried to switch to dune.
In order to build documentation with dune I had to install odoc. So I tried to install odoc via opam install odoc. However opam wanted to downgrade a lot of packages in order to install odoc and finally screwed up my installation.
I could recover from this situation by opam upgrade. However I don’t get a working installation with odoc. Isn’t there a version of odoc which is compatible with other libraries in their current version? If not I probably cannot use dune as a build manager.
Thanks for any hint.
Regards
Helmut
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] dune and odoc
2019-04-06 23:28 [Caml-list] dune and odoc Helmut Brandl
@ 2019-04-07 7:41 ` Daniel Bünzli
2019-04-07 12:37 ` Helmut Brandl
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Bünzli @ 2019-04-07 7:41 UTC (permalink / raw)
To: Helmut Brandl, caml users
On 7 April 2019 at 01:28:20, Helmut Brandl (helmut.brandl@gmx.net) wrote:
> Thanks for any hint.
Did you `opam udpate` before installing `odoc` ? As far as I can see odoc 1.4.0 has no upper constraints so it seems a bit strange to see *downgrades* (unless those are in its recursive deps).
If that is the case could you please indicate which dependency is problematic.
Best,
Daniel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] dune and odoc
2019-04-07 7:41 ` Daniel Bünzli
@ 2019-04-07 12:37 ` Helmut Brandl
2019-04-07 13:04 ` Daniel Bünzli
0 siblings, 1 reply; 5+ messages in thread
From: Helmut Brandl @ 2019-04-07 12:37 UTC (permalink / raw)
To: Daniel Bünzli; +Cc: caml users
No. I did ‘opam upgrade’ after my failed trial to install ‘odoc’ with all the downgrades.
After `opam upgrade` I did `opam update` and I have tried another `install odoc` and it succeeded.
I don’t understand this. Can you explain?
Regards
Helmut
> On Apr 7, 2019, at 01:41, Daniel Bünzli <daniel.buenzli@erratique.ch> wrote:
>
> On 7 April 2019 at 01:28:20, Helmut Brandl (helmut.brandl@gmx.net) wrote:
>
>> Thanks for any hint.
>
> Did you `opam udpate` before installing `odoc` ? As far as I can see odoc 1.4.0 has no upper constraints so it seems a bit strange to see *downgrades* (unless those are in its recursive deps).
>
> If that is the case could you please indicate which dependency is problematic.
>
> Best,
>
> Daniel
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] dune and odoc
2019-04-07 12:37 ` Helmut Brandl
@ 2019-04-07 13:04 ` Daniel Bünzli
2019-04-07 13:06 ` Daniel Bünzli
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Bünzli @ 2019-04-07 13:04 UTC (permalink / raw)
To: Helmut Brandl; +Cc: caml users
On 7 April 2019 at 14:37:44, Helmut Brandl (helmut.brandl@gmx.net) wrote:
> I don’t understand this. Can you explain?
`opam update` fetches the latest package definitions from the opam repository. `opam upgrade` upgrades your packages to their latest version. Invoke the commands with `--help` for more information.
I suspect you didn't have the definition for opam 1.4.0 before you `opam update`d.
Best,
D
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Caml-list] dune and odoc
2019-04-07 13:04 ` Daniel Bünzli
@ 2019-04-07 13:06 ` Daniel Bünzli
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Bünzli @ 2019-04-07 13:06 UTC (permalink / raw)
To: Helmut Brandl; +Cc: caml users
On 7 April 2019 at 15:04:28, Daniel Bünzli (daniel.buenzli@erratique.ch) wrote:
> `opam update` fetches the latest package definitions from the opam repository. `opam
> upgrade` upgrades your packages to their latest version.
Well re-reading this sentence I understand it might be confusing. `opam upgrade`, upgrades packages to their latest version according to the definitions you have *locally*.
D
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-04-07 13:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-06 23:28 [Caml-list] dune and odoc Helmut Brandl
2019-04-07 7:41 ` Daniel Bünzli
2019-04-07 12:37 ` Helmut Brandl
2019-04-07 13:04 ` Daniel Bünzli
2019-04-07 13:06 ` Daniel Bünzli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox