# Publishing a package from GitLab?

**URL:** <https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963>\
**Category:** Ecosystem\
**Tags:** opam, package\
**Created:** [April 8, 2026, 9:43am UTC](https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963 "2026-04-08T09:43:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoric](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/yoric/32/6071_2.png) [@Yoric](https://discuss.ocaml.org/u/Yoric)\
**Post date:** [April 8, 2026, 9:43am UTC](https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963/1 "2026-04-08T09:43:44Z")

</div>

I have recently written a new binary (de)serialization package with support for preserving shared values and I have difficulties publishing it on opam from a GitLab repo. `opam publish` seems to expect GitHub for everything.

Has anyone attempted this kind of thing?

> **[Yoric / David Teller / binthere · GitLab](https://gitlab.com/yteller/binthere)**
>
> GitLab.com

---

<div class="post-metadata">

**Author:** ![kit-ty-kate](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/kit-ty-kate/32/5953_2.png) [@kit-ty-kate](https://discuss.ocaml.org/u/kit-ty-kate)\
**Post date:** [April 8, 2026, 10:03am UTC](https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963/2 "2026-04-08T10:03:56Z")

</div>

opam-publish only defaults to github if it doesn’t know how to get the archive but you can drive it very easily by giving it the url:

```auto
opam publish https://gitlab.com/api/v4/projects/81089450/packages/generic/bin_there/0.1.10/bin_there-0.1.10.tar.gz

```

---

<div class="post-metadata">

**Author:** ![Yoric](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/yoric/32/6071_2.png) [@Yoric](https://discuss.ocaml.org/u/Yoric)\
**Post date:** [April 8, 2026, 8:34pm UTC](https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963/3 "2026-04-08T20:34:26Z")

</div>

Thanks.

However, I get to this [Opam-CI](https://opam.ci.ocaml.org/github/ocaml/opam-repository/commit/14cf1d5d7d35bdd290559dd76592f432c2d3ef63/variant/distributions,opensuse-15.6-ocaml-4.14,bin_there.0.1.12) . Any idea how I can move past that point?

---

<div class="post-metadata">

**Author:** ![kit-ty-kate](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/kit-ty-kate/32/5953_2.png) [@kit-ty-kate](https://discuss.ocaml.org/u/kit-ty-kate)\
**Post date:** [April 8, 2026, 8:39pm UTC](https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963/4 "2026-04-08T20:39:00Z")

</div>

that looks like a full disk on one of the CI machines.  
Can you open a ticket on the [infra bugtracker](https://github.com/ocaml/infrastructure/issues)?

---

<div class="post-metadata">

**Author:** ![Yoric](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/yoric/32/6071_2.png) [@Yoric](https://discuss.ocaml.org/u/Yoric)\
**Post date:** [April 10, 2026, 6:59am UTC](https://discuss.ocaml.org/t/publishing-a-package-from-gitlab/17963/5 "2026-04-10T06:59:36Z")

</div>

Done and fixed on their side! Thanks!
