From 2e6ca16a4a23fcf73c6c5c4c5ee02319cc1cbb9e Mon Sep 17 00:00:00 2001
From: Max Jonas Werner <mail@makk.es>
Date: Fri, 3 Sep 2021 12:20:57 +0200
Subject: [PATCH] chore: use os.ReadFile instead of deprecated ioutil.ReadFile

Signed-off-by: Max Jonas Werner <mail@makk.es>
---
 cmd/flux/bootstrap_git.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/flux/bootstrap_git.go b/cmd/flux/bootstrap_git.go
index 90a2148a..e7130243 100644
--- a/cmd/flux/bootstrap_git.go
+++ b/cmd/flux/bootstrap_git.go
@@ -19,7 +19,6 @@ package main
 import (
 	"context"
 	"fmt"
-	"io/ioutil"
 	"net/url"
 	"os"
 	"strings"
@@ -203,7 +202,7 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error {
 	var caBundle []byte
 	if bootstrapArgs.caFile != "" {
 		var err error
-		caBundle, err = ioutil.ReadFile(bootstrapArgs.caFile)
+		caBundle, err = os.ReadFile(bootstrapArgs.caFile)
 		if err != nil {
 			return fmt.Errorf("unable to read TLS CA file: %w", err)
 		}
-- 
GitLab