dream icon indicating copy to clipboard operation
dream copied to clipboard

Error while installing dependencies with esy

Open davisuga opened this issue 2 years ago • 2 comments

I got the following error when I run esy with the hello example:

 ~/gits/dream/example/1-hello | master !1 | esy                                                                                                     1 ✘  16:19:43 
info esy 0.6.12-dev (using esy.json)
info building @opam/easy-format@opam:1.3.3@f5b11eb6
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @opam/easy-format@opam:1.3.3
    # esy-build-package: pwd: /home/davi/.esy/3/b/opam__s__easy_format-opam__c__1.3.3-97ae9c63
    # esy-build-package: running: 'dune' 'build' '-p' 'easy-format' '-j' '4' '--promote-install-files=false' '@install'
    # esy-build-package: running: 'dune' 'install' '-p' 'easy-format' '--create-install-files' 'easy-format'
    /usr/bin/opam var prefix > /tmp/dune_0dfee4_output
    [ERROR] Opam has not been initialised, please run `opam init'
    error: command failed: 'dune' 'install' '-p' 'easy-format' '--create-install-files' 'easy-format' (exited with 1)
    esy-build-package: exiting with errors above...
    
  building @opam/easy-format@opam:1.3.3
esy: exiting due to errors above

davisuga avatar May 01 '22 19:05 davisuga

What is master !1 ?

Et7f3 avatar Jun 18 '22 22:06 Et7f3

Oh, it's from my zsh config. Just ignore 😅

davisuga avatar Jun 18 '22 22:06 davisuga

I am unable to reproduce this locally right now. It looks like some kind of upstream error, probably in esy's repos, and it might have been fixed upstream. Have you observed this since?

aantron avatar Apr 16 '23 06:04 aantron

I'm going to close this for lack of information/ability to reproduce it. I've also converted the OCaml-syntax examples to use opam as the recommended package manager.

aantron avatar Nov 30 '23 20:11 aantron