I've done this:
(unless (package-installed-p 'gitlab)
(package-install 'gitlab))
and the
dies with an error from the bowels where basically
fails as f package is not installed.
My fix was to add
;; its a bug in my opinion
(unless (package-installed-p 'f)
(package-install 'f))
to my init file. Seems like a bug somewhere, but with a simple workaround