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:
parent
1e56d38ef9
commit
ac5788eed0
@ -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)
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -1,3 +1,4 @@
|
||||
# This file was generated by GoReleaser. DO NOT EDIT.
|
||||
apiVersion: krew.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user