Alien::Build::Plugin::Download::GitLab(3) User Contributed Perl Documentation Alien::Build::Plugin::Download::GitLab(3)

Alien::Build::Plugin::Download::GitLab - Alien::Build plugin to download from GitLab

version 0.01

use alienfile;

plugin 'Download::GitLab' => (
  gitlab_user    => 'plicease',
  gitlab_project => 'dontpanic',

This plugin is designed for downloading assets from a GitLab instance.

The host to fetch from by default.

The user to fetch from.

The project to fetch from.

The asset type to fetch. This must be one of "source" or "link".

The expected format of the asset. This should be one that Alien::Build::Plugin::Extract::Negotiate understands. The default is "tar.gz".

Where to compute the version from. This should be one of "tag_name" or "name". The default is "tag_name".

This is an optional code reference, which can be used to modify the version. For example, if tags have a "v" prefix you could remove it like so:

plugin 'Download::GitLab' => (
  gitlab_user     => 'plicease',
  gitlab_project  => 'dontpanic',
  convert_version => sub {
    my $version = shift;
    $version =~ s/^v//;
    return $version;

For "link" types, this is a regular expression that filters the asset filenames. For example, if there are multiple archive formats provided, you can get just the gzip'd tarball by setting this to "qr/\.tar\.gz$/".

Graham Ollis <>

This software is copyright (c) 2022 by Graham Ollis.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2022-09-26 perl v5.36.0