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

# [NAME](#NAME)

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

# [VERSION](#VERSION)

version 0.01

# [SYNOPSIS](#SYNOPSIS)

```
 use alienfile;
 
 plugin 'Download::GitLab' => (
   gitlab_user    => 'plicease',
   gitlab_project => 'dontpanic',
 );
```

# [DESCRIPTION](#DESCRIPTION)

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

# [PROPERTIES](#PROPERTIES)

## [gitlab\_host](#gitlab_host)

The host to fetch from &lt;https://gitlab.com&gt; by default.

## [gitlab\_user](#gitlab_user)

The user to fetch from.

## [gitlab\_project](#gitlab_project)

The project to fetch from.

## [type](#type)

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

## [format](#format)

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

## [version\_from](#version_from)

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

## [convert\_version](#convert_version)

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;
   },
 );
```

## [link\_name](#link_name)

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$/".

# [SEE ALSO](#SEE_ALSO)

[Alien](#Alien)

[Alien::Build::Plugin::Download::GitHub](#Alien::Build::Plugin::Download::GitHub)

[alienfile](#alienfile)

[Alien::Build](#Alien::Build)

# [AUTHOR](#AUTHOR)

Graham Ollis &lt;plicease@cpan.org&gt;

# [COPYRIGHT AND LICENSE](#COPYRIGHT_AND_LICENSE)

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.

2026-01-07 perl v5.42.0

---

Document: Alien::Build::Plugin::Download::GitLab(3pm) from perl-alien-build-plugin-download-gitlab 0.01-r0 (Chainguard OS)
Source: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/Alien-Build-Plugin-Download-GitLab-0.01.tar.gz
