Unverified Commit 2a8aa79e authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

gitlab-ci-linter: init at 2.4.0 (#445230)

parents 0838e37f 664b29a0
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -4182,6 +4182,13 @@
    githubId = 91694;
    name = "Javier Candeira";
  };
  caniko = {
    email = "gpg@rotas.mozmail.com";
    github = "caniko";
    githubId = 29519599;
    name = "Can H. Tartanoglu";
    keys = [ { fingerprint = "DF95 1EC0 9B8F 8094 C616  5589 1D63 6EDE 97DC 0280"; } ];
  };
  canndrew = {
    email = "shum@canndrew.org";
    github = "canndrew";
+35 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitLab,
}:

buildGoModule (finalAttrs: {
  pname = "gitlab-ci-linter";
  version = "2.4.0";

  src = fetchFromGitLab {
    owner = "orobardet";
    repo = "gitlab-ci-linter";
    tag = "v${finalAttrs.version}";
    hash = "sha256-zH7eeAJzazDf4LnfBxFKMIPIB4Gx4rn7DCEqBV5zIWo=";
  };

  vendorHash = "sha256-GKv7uWnY9UqDuzj/VcXTAjGJUyUEsZws3ORnPCX8mwU=";

  # Build flags based on the project's Makefile
  ldflags = [
    "-s"
    "-w"
    "-X main.version=${finalAttrs.version}"
  ];
  env.CGO_ENABLED = 0;

  meta = {
    description = ".gitlab-ci.yml lint helper tool";
    homepage = "https://gitlab.com/orobardet/gitlab-ci-linter";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ caniko ];
    mainProgram = "gitlab-ci-linter";
  };
})