1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-31 01:53:50 +02:00

fix: add do not edit header to generated files

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2023-05-29 18:22:57 +00:00
parent 1e56d38ef9
commit ac5788eed0
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
26 changed files with 26 additions and 1 deletions

View File

@ -131,7 +131,7 @@ func doRun(ctx *context.Context, krew config.Krew, cl client.ReleaserURLTemplate
filename := krew.Name + ".yaml"
yamlPath := filepath.Join(ctx.Config.Dist, filename)
log.WithField("manifest", yamlPath).Info("writing")
if err := os.WriteFile(yamlPath, []byte(content), 0o644); err != nil { //nolint: gosec
if err := os.WriteFile(yamlPath, []byte("# This file was generated by GoReleaser. DO NOT EDIT.\n"+content), 0o644); err != nil { //nolint: gosec
return fmt.Errorf("failed to write krew manifest: %w", err)
}

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
metadata:

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let

View File

@ -1,3 +1,4 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{ system ? builtins.currentSystem, pkgs, lib, fetchurl, installShellFiles }:
let