My package builds correctly on my dev system, but today I tried for the first time to build it in hosted CI, and I get this from
Error: The package ocinco does not have any user defined stanzas attached to
it. If this is intentional, add (allow_empty) to the package definition in
the dune-project file
In grand old dune fashion, the online doc says nothing about this …
I must add that dune then proceeds to do the build, but this makes my build script to fail.
Here’s the entire
(lang dune 3.4) (name ocinco) (generate_opam_files true) (source (gitlab nobrowser/ocinco)) (authors "Ian Zimmerman <firstname.lastname@example.org>") (maintainers "Ian Zimmerman <email@example.com>") (license ZPL-2.1) (documentation https://very.loosely.org/loosely-doc/ocinco) (package (name ocinco) (synopsis "Parser / decoder / converter for JSON5") (description "A library for decoding the JSON5 format, specified here: https://spec.json5.org/") (depends ocaml dune ppx_deriving (uucp (>= 15)) (sedlex (>= 3.0)) (fmlib (>= 0.5.1))) (tags (json5 parsing))) ; See the complete stanza docs at https://dune.readthedocs.io/en/stable/dune-files.html#dune-project
The source and doc URLs are wrong, but that shouldn’t matter if I’m not in fact running opam?