fdopen / opam-repository-mingw

windows package repository for OPAM (mingw and msvc)
https://fdopen.github.io/opam-repository-mingw/
Creative Commons Zero v1.0 Universal
96 stars 34 forks source link

Issue with ocaml-github #20

Closed samoht closed 8 years ago

samoht commented 8 years ago

Any idea what this error means?

#=== ERROR while compiling my-package.dev =====================================#
# opam-version         1.3.0~dev (496e53587737b46b14f284e4bf420059e1a4125b)
# os                   win32
# command              ocaml setup.ml -configure --enable-unix --disable-js --prefix C:/cygwin/home/appveyor/.opam/4.02.3+mingw64c
# path                 C:/cygwin/home/appveyor/.opam/4.02.3+mingw64c/build/my-package.dev
# exit-code            1
# env-file             C:/cygwin/home/appveyor/.opam/4.02.3+mingw64c/build/my-package.dev\my-package-324-05296d.env
# stdout-file          C:/cygwin/home/appveyor/.opam/4.02.3+mingw64c/build/my-package.dev\my-package-324-05296d.out
# stderr-file          C:/cygwin/home/appveyor/.opam/4.02.3+mingw64c/build/my-package.dev\my-package-324-05296d.err
### stderr ###
# '.' is not recognized as an internal or external command,
# operable program or batch file.
# E: Failure("Command './init_config.sh' terminated with error code 1")

@dsheets said that the script which is running is:

#!/bin/sh
if [ ! -e ./lib_test/config.ml ]; then
  cp ./lib_test/config.ml.in ./lib_test/config.ml
fi
fdopen commented 8 years ago

https://github.com/mirage/ocaml-github/blob/15d2065868cb6dddb9b4b62f71d0d2be9c16b90a/_oasis#L9

You can't execute shell scripts from oasis. Just rewrite it to 'sh ./init_config.sh'.

samoht commented 8 years ago

This fixed it, thank you very much again!