I am trying to set up a CI on a coq github repository with meta.yml but it is failling with the message
sh: 1: nano: not found
what did I do wrong?
IIUC, Opam cannot find coq-expfloat.opam package file — No valid package definition found
is the more relevant error
+ (script @ line 10) $ opam pin add -n -y -k path coq-expfloat .
Package coq-expfloat does not exist, create as a NEW package? [Y/n] y
[coq-expfloat.~dev] synchronised (file:///github/workspace)
[NOTE] No package definition found for coq-expfloat.~dev: please complete the template
sh: 1: nano: not found
Error: Empty file or editor error, aborting.
Error: No valid package definition found
I'm sure opam doesn't know anything about meta.yml, not sure if any meta.yml infrastructure would generate the opam packages
ok thanks I forgot to add the opam file that was generated to my repo. Thanks a lot!
Ok that was the problem. Thanks. Anyway this nano
message is a bit disturbing.... Thanks again
"disturbing"? Just to avoid misunderstandings, opam is trying to call command-line editor https://www.nano-editor.org/ , but that's not installed in CI images, hence the shell sh
is telling sh: 1: nano: not found
not sure what that message seems like otherwise!
maybe opam
should support a --no-interactive
option, but I can't find an existing one (maybe --confirm-level
). Unfortunately seems very low priority, but what do I know :-(
I think unsetting the EDITOR variable may be enough. Or set it to an actual editor (but then the CI job would probably stall).
this looks like a new behavior for recent opam. We'll have to investigate if there's an option to avoid the "complete the template" part, so no editor is invoked
Either way, docker-coq-action could test if $pkg.opam exists (here coq-expfloat.opam — it knows the name!) and give a better error if not?
right, in the end this is a Docker-Coq-Action issue. Could someone report it there as memento? https://github.com/coq-community/docker-coq-action/issues
Last updated: Oct 13 2024 at 01:02 UTC